StdGen

The standard pseudo-random number generator.
The standard pseudo-random number generator.
Gets the global pseudo-random number generator. Extracts the contents of globalStdGen
Initialize StdGen using system entropy (i.e. /dev/urandom) when it is available, while falling back on using system time as the seed.
Constructs a StdGen deterministically from an Int seed. See mkStdGen64 for a Word64 variant that is architecture agnostic.
Constructs a StdGen deterministically from a Word64 seed. The difference between mkStdGen is that mkStdGen64 will work the same on 64-bit and 32-bit architectures, while the former can only use 32-bit of information for initializing the psuedo-random number generator on 32-bit operating systems
Applies split to the current global pseudo-random generator globalStdGen, updates it with one of the results, and returns the other.
Sets the global pseudo-random number generator. Overwrites the contents of globalStdGen
Global mutable standard pseudo-random number generator. This is the same generator that was historically used by randomIO and randomRIO functions.
>>> import Control.Monad (replicateM)

>>> replicateM 10 (uniformRM ('a', 'z') globalStdGen)
"tdzxhyfvgr"
Given a Seed, returns a new random number generator based on that seed and the actual numeric seed that was used to build that generator, so it can be recreated.
Return a new generator for random numbers.
Return a new generator for random numbers.
Gets the global random number generator.
Sets the global random number generator.
Constructs a StdGen deterministically.
StdGen for generating segment IDs and trace IDs.