Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
randomRs :: (Random a, RandomGen g) => (a, a) -> g -> [a]random System.Random Plural variant of randomR, producing an infinite list of pseudo-random values instead of returning a new generator.
randoms :: (Random a, RandomGen g) => g -> [a]random System.Random Plural variant of random, producing an infinite list of pseudo-random values instead of returning a new generator.
randomM :: (RandomGenM g r m, Random a) => g -> m arandom System.Random.Stateful Generates a pseudo-random value using monadic interface and Random instance.
Examples
>>> import System.Random.Stateful >>> let pureGen = mkStdGen 137 >>> g <- newIOGenM pureGen >>> randomM g :: IO Double 0.5728354935654512
randomRM :: (RandomGenM g r m, Random a) => (a, a) -> g -> m arandom System.Random.Stateful Generates a pseudo-random value using monadic interface and Random instance.
Examples
>>> import System.Random.Stateful >>> let pureGen = mkStdGen 137 >>> g <- newIOGenM pureGen >>> randomRM (1, 100) g :: IO Int 52
-
mwc-random System.Random.MWC.SeedSource Name of source of randomness. It should be used in error messages
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.