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.
applyRandomGenM :: RandomGenM g r m => (r -> (a, r)) -> g -> m arandom System.Random.Stateful No documentation available.
createSystemRandom :: IO GenIOmwc-random System.Random.MWC Seed a PRNG with data from the system's fast source of pseudo-random numbers.
withSystemRandom :: PrimBase m => (Gen (PrimState m) -> m a) -> IO amwc-random System.Random.MWC Deprecated: Use withSystemRandomST or createSystemSeed or createSystemRandom instead
withSystemRandomST :: (forall s . () => Gen s -> ST s a) -> IO amwc-random System.Random.MWC Seed PRNG with data from the system's fast source of pseudo-random numbers and execute computation in ST monad.
createSystemRandom :: IO GenIOmwc-probability System.Random.MWC.Probability Seed a PRNG with data from the system's fast source of pseudo-random numbers.
withSystemRandom :: PrimBase m => (Gen (PrimState m) -> m a) -> IO amwc-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
withSystemRandomST :: (forall s . () => Gen s -> ST s a) -> IO amwc-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.
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.
withRandomGenIORef :: RandomGen g => IORef g -> (g -> (a, g)) -> IO aaws-xray-client System.Random.XRayCustom Like getStdRandom, except use a given 'IORef StdGen' instead of the global theStdGen.
createSystemRandom :: IO GenIOpcg-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.