StdGen package:MonadRandom
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 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