Hoogle Search
Within LTS Haskell 23.21 (ghc-9.8.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
This library deals with the common task of pseudo-random number generation.
-
random System.Random The class of types for which random values can be generated. Most instances of Random will produce values that are uniformly distributed on the full range, but for those types without a well-defined "full range" some sensible default subrange will be selected. Random exists primarily for backwards compatibility with version 1.1 of this library. In new code, use the better specified Uniform and UniformRange instead.
-
tf-random System.Random.TF.Instances No documentation available.
-
random :: (Random a, RandomGen g) => g -> (a, g)random System.Random The same as randomR, but using a default range determined by the type:
random :: (Random a, RandomGen g) => g -> (a, g)tf-random System.Random.TF.Instances No documentation available.
random :: MTRandom a => MTGen -> IO amersenne-random System.Random.Mersenne The same as randomR, but using a default range determined by the type:
-
random System.Random RandomGen is an interface to pure pseudo-random number generators. StdGen is the standard RandomGen instance provided by this library.
class (RandomGen r, StatefulGen g m) =>
RandomGenM g r (m :: Type -> Type) | g -> rrandom System.Random.Stateful Interface to operations on RandomGen wrappers like IOGenM and StateGenM.
-
tf-random System.Random.TF.Gen Alternative RandomGen class with a modified next operation, and added splitn and level operations. Using the generator requires that no more than one operation is called on the same generator state, as the implementation does not guarantee pseudorandomness otherwise. As an exception, calling splitn many times on the same generator state is allowed as long as the 'bits' argument is the same for all the calls.
Page 1 of many | Next