Hoogle Search
Within LTS Haskell 22.19 (ghc-9.6.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
randomEnum :: (Enum a, RandomGen g) => (a, a) -> g -> (a, g)tf-random System.Random.TF.Instances No documentation available.
randomR :: (Random a, RandomGen g) => (a, a) -> g -> (a, g)tf-random System.Random.TF.Instances No documentation available.
randomRs :: (Random a, RandomGen g) => (a, a) -> g -> [a]tf-random System.Random.TF.Instances No documentation available.
randoms :: (Random a, RandomGen g) => g -> [a]tf-random System.Random.TF.Instances No documentation available.
randomDouble :: PureMT -> (Double, PureMT)mersenne-random-pure64 System.Random.Mersenne.Pure64 Efficiently yield a new 53-bit precise Double value, and a new generator.
randomInt :: PureMT -> (Int, PureMT)mersenne-random-pure64 System.Random.Mersenne.Pure64 Yield a new Int value from the generator, returning a new generator and that Int. The full 64 bits will be used on a 64 bit machine.
randomInt64 :: PureMT -> (Int64, PureMT)mersenne-random-pure64 System.Random.Mersenne.Pure64 Yield a new Int64 value from the generator, returning a new generator and that Int64.
randomWord :: PureMT -> (Word, PureMT)mersenne-random-pure64 System.Random.Mersenne.Pure64 Yield a new Word value from the generator, returning a new generator and that Word.
randomWord64 :: PureMT -> (Word64, PureMT)mersenne-random-pure64 System.Random.Mersenne.Pure64 Yield a new Word64 value from the generator, returning a new generator and that Word64.
randomIO :: MTRandom a => IO amersenne-random System.Random.Mersenne A variant of random that uses the global random number generator (see System.Random#globalrng). Essentially a convenience function if you're already in IO. Note that there are performance penalties calling randomIO in an inner loop, rather than random applied to a global generator. The cost comes in retrieving the random gen from an IORef, which is non-trivial. Expect a 3x slow down in speed of random generation.