Hoogle Search

Within LTS Haskell 24.1 (ghc-9.10.2)

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

  1. applyRandomGenM :: RandomGenM g r m => (r -> (a, r)) -> g -> m a

    random System.Random.Stateful

    No documentation available.

  2. createSystemRandom :: IO GenIO

    mwc-random System.Random.MWC

    Seed a PRNG with data from the system's fast source of pseudo-random numbers.

  3. withSystemRandom :: PrimBase m => (Gen (PrimState m) -> m a) -> IO a

    mwc-random System.Random.MWC

    Deprecated: Use withSystemRandomST or createSystemSeed or createSystemRandom instead

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

  5. createSystemRandom :: IO GenIO

    mwc-probability System.Random.MWC.Probability

    Seed a PRNG with data from the system's fast source of pseudo-random numbers.

  6. withSystemRandom :: PrimBase m => (Gen (PrimState m) -> m a) -> IO a

    mwc-probability System.Random.MWC.Probability

    Seed a PRNG with data from the system's fast source of pseudo-random numbers, then run the given action. This function is unsafe and for example allows STRefs or any other mutable data structure to escape scope:

    >>> ref <- withSystemRandom $ \_ -> newSTRef 1
    
    >>> withSystemRandom $ \_ -> modifySTRef ref succ >> readSTRef ref
    2
    
    >>> withSystemRandom $ \_ -> modifySTRef ref succ >> readSTRef ref
    3
    

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

  8. replicateRandom :: RandomGen g => Int -> g -> (g -> (a, g)) -> ([a], g)

    aws-xray-client System.Random.XRayCustom

    Runs the supplied function a specified number of times, each time using the new RandomGen value.

  9. withRandomGenIORef :: RandomGen g => IORef g -> (g -> (a, g)) -> IO a

    aws-xray-client System.Random.XRayCustom

    Like getStdRandom, except use a given 'IORef StdGen' instead of the global theStdGen.

  10. createSystemRandom :: IO GenIO

    pcg-random System.Random.PCG

    Seed a PRNG with data from the system's fast source of pseudo-random numbers. All the caveats of withSystemRandom apply here as well.

Page 4 of many | Previous | Next