random-class-0.2.0.2: Class of random value generation

Safe HaskellNone
LanguageHaskell2010

Random

Documentation

class Gen g where Source #

Minimal complete definition

uniformNative

Associated Types

type Mut s g = m | m -> s g Source #

type Native g Source #

class Split g where Source #

Minimal complete definition

split

Methods

split :: g -> (g, g) Source #

class Uniform a where Source #

Minimal complete definition

liftUniform

Methods

liftUniform :: (Bounded b, Enum b, Monad m) => m b -> m a Source #

Instances

(Bounded a, Enum a) => Uniform a Source # 

Methods

liftUniform :: (Bounded b, Enum b, Monad m) => m b -> m a Source #

uniform :: (Gen g, Bounded (Native g), Enum (Native g), Uniform a) => State g a Source #

range :: (Gen g, Bounded (Native g), Enum (Native g), Enum a) => (a, a) -> State g a Source #

rangeM :: (Gen g, Bounded (Native g), Enum (Native g), Enum a, PrimMonad m) => (a, a) -> ReaderT (Mut (PrimState m) g) m a Source #