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.

  1. module System.Random

    This library deals with the common task of pseudo-random number generation.

  2. class Random a

    random System.Random

    The class of types for which random values can be generated. Most instances of Random will produce values that are uniformly distributed on the full range, but for those types without a well-defined "full range" some sensible default subrange will be selected. Random exists primarily for backwards compatibility with version 1.1 of this library. In new code, use the better specified Uniform and UniformRange instead.

  3. class Random a

    tf-random System.Random.TF.Instances

    No documentation available.

  4. module TextShow.System.Random

    TextShow instances for StdGen. Since: 2

  5. random :: (Random a, RandomGen g) => g -> (a, g)

    random System.Random

    The same as randomR, but using a default range determined by the type:

    • For bounded types (instances of Bounded, such as Char), the range is normally the whole type.
    • For floating point types, the range is normally the closed interval [0,1].
    • For Integer, the range is (arbitrarily) the range of Int.

  6. random :: (Random a, RandomGen g, Uniform a) => g -> (a, g)

    random System.Random

    The same as randomR, but using a default range determined by the type:

    • For bounded types (instances of Bounded, such as Char), the range is normally the whole type.
    • For floating point types, the range is normally the closed interval [0,1].
    • For Integer, the range is (arbitrarily) the range of Int.

  7. random :: (Random a, RandomGen g) => g -> (a, g)

    tf-random System.Random.TF.Instances

    No documentation available.

  8. random :: MTRandom a => MTGen -> IO a

    mersenne-random System.Random.Mersenne

    The same as randomR, but using a default range determined by the type:

    • For bounded types (instances of Bounded, such as Char), the range is normally the whole type.
    • For fractional types, the range is normally the semi-closed interval [0,1).
    • For Integer, the range is (arbitrarily) the range of Int.

  9. class RandomGen g

    random System.Random

    RandomGen is an interface to pure pseudo-random number generators. StdGen is the standard RandomGen instance provided by this library.

  10. class (RandomGen r, StatefulGen g m) => RandomGenM g r m | g -> r

    random System.Random.Stateful

    Interface to operations on RandomGen wrappers like IOGenM and StateGenM.

Page 1 of many | Next