Hoogle Search

Within LTS Haskell 12.18 (ghc-8.4.4)

  1. 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.

  2. randomR :: (Random a, RandomGen g) => (a, a) -> g -> (a, g)

    tf-random System.Random.TF.Instances

    No documentation available.

  3. 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).

  4. 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.

  5. randomRs :: (Random a, RandomGen g) => (a, a) -> g -> [a]

    tf-random System.Random.TF.Instances

    No documentation available.

  6. gRandomR :: forall a g . (ADTRecord a, Constraints a Random, RandomGen g) => (a, a) -> g -> (a, g)

    one-liner-instances System.Random.OneLiner

    randomR implemented by sequencing randomR between all components Requires the type to have only a single constructor.

  7. gRandomRIO :: forall a . (ADTRecord a, Constraints a Random) => (a, a) -> IO a

    one-liner-instances System.Random.OneLiner

    randomRIO implemented by calling gRandomR on the global seed.

  8. gRandomRIOSum :: forall a . (ADT a, Constraints a Random) => (a, a) -> IO a

    one-liner-instances System.Random.OneLiner

    randomRIO implemented by calling gRandomRSum on the global seed. If given a range of items made with different constructors, will be error!

  9. gRandomRSum :: forall a g . (ADT a, Constraints a Random, RandomGen g) => (a, a) -> g -> (a, g)

    one-liner-instances System.Random.OneLiner

    randomR implemented by sequencing randomR between all components. If given a range of items made with different constructors, will be error!

  10. gRandomRSums :: forall a g . (ADT a, Constraints a Random, RandomGen g) => (a, a) -> g -> [a]

    one-liner-instances System.Random.OneLiner

    randomRs implemented by repeatedly calling gRandomRSum. If given a range of items made with different constructors, will be error!

Page 1 of 2 | Next