random-variates-0.1.1.0: "Uniform RNG => Non-Uniform RNGs"

Safe HaskellSafe
LanguageHaskell2010

Stochastic.Generator

Documentation

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

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