random-variates-0.1.1.0: "Uniform RNG => Non-Uniform RNGs"
Stochastic.Generator
class Generator g where Source
Minimal complete definition
nextG
Associated Types
type From g Source
Methods
nextG :: State g (From g) Source
nextN :: Int -> State g [From g] Source
Instances
foldWhile :: Generator g => (From g -> a -> a) -> a -> (a -> Bool) -> State g [From g] Source
while :: Generator g => (From g -> Bool) -> State g [From g] Source