Efficient, general purpose pseudo-random number generation
This package provides the System.Random.MWC module, a Haskell library for generating high-quality pseudo-random numbers in a space- and time-efficient way.
Please report bugs via the github issue tracker.
Master git git repository:
git clone git://github.com/bos/mwc-random.git
This library is written and maintained by Bryan O’Sullivan, firstname.lastname@example.org.
Changes in 0.15.0.2
- Doctests on 32-bit platforms are fixed. (#79)
Changes in 0.15.0.1
- Bug in generation of Int/Word in both uniform and uniformR is fixed. (#75)
Changes in 0.15.0.0
random>=1.2is dependency of
Instances for type classes
FrozenGendefined in random-1.2 are added for
System.Random.MWC.CondensedTablenow work with arbitrary
System.Random.MWC.uniformVectornow works with arbitrary
StatefulGenas well and uses in-place initialization instead of
generateM. It should be faster for anything but IO and ST (those shoud remain same).
Changes in 0.14.0.0
Low level functions for acquiring random data for initialization of PRGN state is moved to
Ensure that carry is always correct when restoring PRNG state from seed. Only affects users who create 258 element seed manually. (#63, #65)
Changes in 0.13.6.0
tablePoissonnow can handle λ>1923, see #59 for details. That required intoduction of dependency on math-functions.
Changes in 0.13.5.0
Changes in 0.13.4.0
withSystemRandomuses RtlGenRandom for seeding generator on windows
Changes in 0.13.3.1
- primitive-0.6 compatibility
Changes in 0.13.3.0
Monadic variant of vector shuffle added:
Changes in 0.13.2.2
- Fixed crash during gen. initialization on Windows when stderr is not available (#36).
Changes in 0.13.2.0
Generators for beta, Bernoully, Dirichlet and categorical distributions added.
Functions for generating random shuffles added.
Changes in 0.13.1.2
- GHC 7.9 support
Changes in 0.13.1.1
- Long standing performance problem in normal distribution fixed (#16)
Changes in 0.13.1.0
Changes in 0.13.0.0
Workaround for GHC bug 8072 (bug 25). GHC 7.6 on 32-bit platrofms is affected.
Generators for truncated exponential and geometric distributions added.
Changes in 0.12.0.0
Generation of discrete random variates using condensed tables methed. Tables for Poisson and binomial distributions are provided.