Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

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

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

    random System.Random

    Plural variant of randomR, producing an infinite list of pseudo-random values instead of returning a new generator.

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

  3. randomM :: (RandomGenM g r m, Random a) => g -> m a

    random System.Random.Stateful

    Generates a pseudo-random value using monadic interface and Random instance.

    Examples

    >>> import System.Random.Stateful
    
    >>> let pureGen = mkStdGen 137
    
    >>> g <- newIOGenM pureGen
    
    >>> randomM g :: IO Double
    0.5728354935654512
    

  4. randomRM :: (RandomGenM g r m, Random a) => (a, a) -> g -> m a

    random System.Random.Stateful

    Generates a pseudo-random value using monadic interface and Random instance.

    Examples

    >>> import System.Random.Stateful
    
    >>> let pureGen = mkStdGen 137
    
    >>> g <- newIOGenM pureGen
    
    >>> randomRM (1, 100) g :: IO Int
    52
    

  5. randomSourceName :: String

    mwc-random System.Random.MWC.SeedSource

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

  6. randomEnum :: (Enum a, RandomGen g) => (a, a) -> g -> (a, g)

    tf-random System.Random.TF.Instances

    No documentation available.

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

    tf-random System.Random.TF.Instances

    No documentation available.

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

    tf-random System.Random.TF.Instances

    No documentation available.

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

    tf-random System.Random.TF.Instances

    No documentation available.

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

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

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

Page 2 of many | Previous | Next