mersenne-random-pure64

Generate high quality pseudorandom numbers purely using a Mersenne Twister

http://code.haskell.org/~dons/code/mersenne-random-pure64/

Version on this page:0.2.2.0
LTS Haskell 22.13:0.2.2.0@rev:1
Stackage Nightly 2024-03-14:0.2.2.0@rev:1
Latest on Hackage:0.2.2.0@rev:1

See all snapshots mersenne-random-pure64 appears in

BSD-3-Clause licensed by Don Stewart
Maintained by Don Stewart
This version can be pinned in stack with:mersenne-random-pure64-0.2.2.0@sha256:f250c7ab6886ec495f2afc3be24b34e3a411e58a0e4f7186197b921b3990329d,2453
Depends on 3 packages(full list with versions):
Used by 3 packages in lts-8.5(full list with versions):

The Mersenne twister is a pseudorandom number generator developed by Makoto Matsumoto and Takuji Nishimura that is based on a matrix linear recurrence over a finite binary field. It provides for fast generation of very high quality pseudorandom numbers. The source for the C code can be found here:

http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt64.html

This library provides a purely functional binding to the 64 bit classic mersenne twister, along with instances of RandomGen, so the generator can be used with System.Random. The generator should typically be a few times faster than the default StdGen (but a tad slower than the impure 'mersenne-random' library based on SIMD instructions and destructive state updates.