aws-xray-client-0.1.0.2: A client for AWS X-Ray.
Safe HaskellNone
LanguageHaskell2010

System.Random.XRayCustom

Description

Helpful functions that should have been included in System.Random.

Synopsis

Documentation

withRandomGenIORef :: RandomGen g => IORef g -> (g -> (a, g)) -> IO a Source #

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

replicateRandom :: RandomGen g => Int -> g -> (g -> (a, g)) -> ([a], g) Source #

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