| Copyright | (C) 2016-2025 David M. Johnson |
|---|---|
| License | BSD3-style (see the file LICENSE) |
| Maintainer | David M. Johnson <code@dmj.io> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Random
Description
A PRNG for use in Component and the Component test infrastructure.
Uses the splitmix32 algorithm under the hood.
Types
Functions
next :: StdGen -> (Double, StdGen) Source #
Get the next StdGen, extracting the value, useful with State.
replicateRM :: Int -> IO [Double] Source #
Generate n amount of random numbers. Uses the global PRNG globalStdGen.
replicateRM 10 :: IO [Double]
Globals
globalStdGen :: IORef StdGen Source #
Global StdGen, used by replicateRM and others.