Hoogle Search

Within LTS Haskell 22.21 (ghc-9.6.5)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

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

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

    tf-random System.Random.TF.Instances

    No documentation available.

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

  4. randomSourceName :: String

    mwc-random System.Random.MWC.SeedSource

    Name of source of randomness. It should be used in error messages

  5. withSystemRandomST :: (forall s . Gen s -> ST s a) -> IO a

    mwc-random System.Random.MWC

    Seed PRNG with data from the system's fast source of pseudo-random numbers and execute computation in ST monad.

  6. withSystemRandomST :: (forall s . () => Gen s -> ST s a) -> IO a

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

  7. newtype GRandomSum a

    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!

  8. GRandomSum :: a -> GRandomSum a

    one-liner-instances System.Random.OneLiner

    No documentation available.

  9. gRandomSum :: forall a g . (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.

  10. gRandomSums :: forall a g . (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