- Additon of binomial sampler using the rejection sampling method in
Kachitvichyanukul, V. and Schmeiser, B. W. Binomial Random
Variate Generation. Communications of the ACM, 31, 2 (February,
1988) 216. https://dl.acm.org/doi/pdf/10.1145/42372.42381. A more
efficient basis for e.g. the beta binomial distribution:
beta a b g >>= \p -> binomial n p g
.
- Doctests on 32-bit platforms are fixed. (#79)
- Bug in generation of Int/Word in both uniform and uniformR is fixed. (#75)
-
withSystemRandomST
andcreateSystemSeed
are added. -
withSystemRandom
is deprecated. -
random>=1.2
is dependency ofmwc-random
. -
Instances for type classes
StatefulGen
&FrozenGen
defined in random-1.2 are added forGen
. -
Functions in
System.Random.MWC.Distributions
andSystem.Random.MWC.CondensedTable
now work with arbitraryStatefulGen
-
System.Random.MWC.uniformVector
now works with arbitraryStatefulGen
as well and uses in-place initialization instead ofgenerateM
. It should be faster for anything but IO and ST (those shoud remain same).
-
Low level functions for acquiring random data for initialization of PRGN state is moved to
System.Random.MWC.SeedSource
module -
Ensure that carry is always correct when restoring PRNG state from seed. Only affects users who create 258 element seed manually. (#63, #65)
tablePoisson
now can handle λ>1923, see #59 for details. That required intoduction of dependency on math-functions.
logCategorical
added
withSystemRandom
uses RtlGenRandom for seeding generator on windows
- primitive-0.6 compatibility
-
Monadic variant of vector shuffle added:
uniformShuffleM
-
Context on
uniformShuffle
loosened
- Fixed crash during gen. initialization on Windows when stderr is not available (#36).
-
Generators for beta, Bernoully, Dirichlet and categorical distributions added.
-
Functions for generating random shuffles added.
- GHC 7.9 support
- Long standing performance problem in normal distribution fixed (#16)
createSystemRandom
added
-
Workaround for GHC bug 8072 (bug 25). GHC 7.6 on 32-bit platrofms is affected.
-
Generators for truncated exponential and geometric distributions added.
-
Fucntion
asGenIO
andasGenST
added. -
Generation of discrete random variates using condensed tables methed. Tables for Poisson and binomial distributions are provided.