random-fu-0.0.0.2: Random number generationSource codeContentsIndex
Data.Random.RVar
Description
Random variables. An RVar is a sampleable random variable. Because probability distributions form a monad, they are quite easy to work with in the standard Haskell monadic styles. For examples, see the source for any of the Distribution instances - they all are defined in terms of RVars.
Synopsis
data RVar a
nByteInteger :: Int -> RVar Integer
nBitInteger :: Int -> RVar Integer
Documentation
data RVar a Source
An opaque type containing a "random variable" - a value which depends on the outcome of some random process.
show/hide Instances
nByteInteger :: Int -> RVar IntegerSource
A random variable evenly distributed over all unsigned integers from 0 to 2^(8*n)-1, inclusive.
nBitInteger :: Int -> RVar IntegerSource
A random variable evenly distributed over all unsigned integers from 0 to 2^n-1, inclusive.
Produced by Haddock version 2.4.2