Hoogle Search
Within LTS Haskell 12.18 (ghc8.4.4)
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)
tfrandom System.Random.TF.Instances No documentation available.

This library deals with the common task of pseudorandom number generation. The library makes it possible to generate repeatable results, by starting with a specified initial random number generator, or to get different results on each run by using the systeminitialised generator or by supplying a seed from some other source. The library is split into two layers:
 A core random number generator provides a supply of bits. The class RandomGen provides a common interface to such generators. The library provides one instance of RandomGen, the abstract data type StdGen. Programmers may, of course, supply their own instances of RandomGen.
 The class Random provides a way to extract values of a particular type from a random number generator. For example, the Float instance of Random allows one to generate random values of type Float.

random System.Random With a source of random number supply in hand, the Random class allows the programmer to extract random values of a variety of types. Minimal complete definition: randomR and random.

tfrandom System.Random.TF.Instances No documentation available.


random System.Random A variant of random that uses the global random number generator (see System.Random#globalrng).
randomR :: (Random a, RandomGen g) => (a, a) > g > (a, g)
random System.Random Takes a range (lo,hi) and a random number generator g, and returns a random value uniformly distributed in the closed interval [lo,hi], together with a new generator. It is unspecified what happens if lo>hi. For continuous types there is no requirement that the values lo and hi are ever produced, but they may be, depending on the implementation and the interval.
randomRIO :: Random a => (a, a) > IO a
random System.Random A variant of randomR that uses the global random number generator (see System.Random#globalrng).
randomRs :: (Random a, RandomGen g) => (a, a) > g > [a]
random System.Random Plural variant of randomR, producing an infinite list of random values instead of returning a new generator.
Page 1 of many  Next