acme-memorandom-0.0.1: Memoized random number generation

Copyright© 2015 Johan Kiviniemi
LicenseMIT
MaintainerJohan Kiviniemi <devel@johan.kiviniemi.name>
Stabilityprovisional
PortabilityTypeFamilies, TypeOperators
Safe HaskellNone
LanguageHaskell2010

System.Random.MemoRandom

Description

A library for generating random numbers in a memoized manner. Implemented as a lazy table indexed by serialized StdGen. Monomorphism is used to facilitate memoization, users should adapt their design to work with random Int values only.

Synopsis

Documentation

randomR' :: (Int, Int) -> StdGen -> (Int, StdGen) Source

A memoized variant of randomR.

random' :: StdGen -> (Int, StdGen) Source

A memoized variant of random.