tf-random-0.4: High-quality splittable pseudorandom number generator

Portabilityportable
Stabilityexperimental
Maintainermichal.palka@chalmers.se
Safe HaskellNone

System.Random.TF.Instances

Description

This module defines alternative Random instances for common integral types, which make use of the RandomGen class from System.Random.TF.Gen.

Documentation

class Random a whereSource

Methods

randomR :: RandomGen g => (a, a) -> g -> (a, g)Source

random :: RandomGen g => g -> (a, g)Source

randomRs :: RandomGen g => (a, a) -> g -> [a]Source

randoms :: RandomGen g => g -> [a]Source

randomEnum :: (Enum a, RandomGen g) => (a, a) -> g -> (a, g)Source