Hoogle Search
Within LTS Haskell 23.22 (ghc-9.8.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
randoms :: (Random a, RandomGen g) => g -> [a]tf-random System.Random.TF.Instances No documentation available.
randoms :: MTRandom a => MTGen -> IO [a]mersenne-random System.Random.Mersenne Plural variant of random, producing an infinite list of random values instead of returning a new generator.
-
mwc-random System.Random.MWC.SeedSource Name of source of randomness. It should be used in error messages
withSystemRandomST :: (forall s . () => Gen s -> ST s a) -> IO amwc-random System.Random.MWC Seed PRNG with data from the system's fast source of pseudo-random numbers and execute computation in ST monad.
withSystemRandomST :: (forall s . () => Gen s -> ST s a) -> IO amwc-probability System.Random.MWC.Probability Seed PRNG with data from the system's fast source of pseudo-random numbers and execute computation in ST monad.
-
one-liner-instances System.Random.OneLiner If a is a data type whose fields are all instances of Random, then GRandom a has a Random instance. Will one day be able to be used with DerivingVia syntax, to derive instances automatically. A version of GRandom that works for data types with multiple constructors. If your type has only one constructor, it might be more performant to use GRandom. Note that the "ranged" variants are partial: if given a range of items made with different constructors, will be error!
GRandomSum :: a -> GRandomSum aone-liner-instances System.Random.OneLiner No documentation available.
gRandomSum :: (ADT a, Constraints a Random, RandomGen g) => g -> (a, g)one-liner-instances System.Random.OneLiner random implemented by selecting a random constructor and sequencing random for all components.
gRandomSums :: (ADT a, Constraints a Random, RandomGen g) => g -> [a]one-liner-instances System.Random.OneLiner randoms implemented by repeatedly calling gRandomSum.
Page 1 of 2 | Next