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. randomEnum :: (Enum a, RandomGen g) => (a, a) -> g -> (a, g)

    tf-random System.Random.TF.Instances

    No documentation available.

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

    tf-random System.Random.TF.Instances

    No documentation available.

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

    tf-random System.Random.TF.Instances

    No documentation available.

  4. randoms :: (Random a, RandomGen g) => g -> [a]

    tf-random System.Random.TF.Instances

    No documentation available.

  5. randomDouble :: PureMT -> (Double, PureMT)

    mersenne-random-pure64 System.Random.Mersenne.Pure64

    Efficiently yield a new 53-bit precise Double value, and a new generator.

  6. randomInt :: PureMT -> (Int, PureMT)

    mersenne-random-pure64 System.Random.Mersenne.Pure64

    Yield a new Int value from the generator, returning a new generator and that Int. The full 64 bits will be used on a 64 bit machine.

  7. randomInt64 :: PureMT -> (Int64, PureMT)

    mersenne-random-pure64 System.Random.Mersenne.Pure64

    Yield a new Int64 value from the generator, returning a new generator and that Int64.

  8. randomWord :: PureMT -> (Word, PureMT)

    mersenne-random-pure64 System.Random.Mersenne.Pure64

    Yield a new Word value from the generator, returning a new generator and that Word.

  9. randomWord64 :: PureMT -> (Word64, PureMT)

    mersenne-random-pure64 System.Random.Mersenne.Pure64

    Yield a new Word64 value from the generator, returning a new generator and that Word64.

  10. randomIO :: MTRandom a => IO a

    mersenne-random System.Random.Mersenne

    A variant of random that uses the global random number generator (see System.Random#globalrng). Essentially a convenience function if you're already in IO. Note that there are performance penalties calling randomIO in an inner loop, rather than random applied to a global generator. The cost comes in retrieving the random gen from an IORef, which is non-trivial. Expect a 3x slow down in speed of random generation.

Page 3 of many | Previous | Next