Package0.2.2.0MathSystem
mersenne-random-pure64
Generate high quality pseudorandom numbers purely using a Mersenne Twister
- Version0.2.2.0
- CategoryMath, System
- LicenceBSD-3-Clause
- AuthorDon Stewart
- MaintainerDon Stewart <dons00@gmail.com>
- Homepagecode.haskell.org/~dons/code/mersenne-random-pure64
- Pinned byhackage mersenne-random-pure64 0.2.2.0
- Sourcehackage.haskell.org/package/mersenne-random-pure64-0.2.2.0
Modules
4 modules- System.Random.Mersenne.Pure648A purely functional binding 64 bit binding to the classic mersenne
- System.Random.Mersenne.Pure64.Base15A purely functional binding 64 bit binding to the classic mersenne
- System.Random.Mersenne.Pure64.MTBlock6A purely functional binding 64 bit binding to the classic mersenne
Internal modules · 1
Description
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.
Depends on
3 packages- base-4.20.2.0with GHC
- random-1.2.1.3in this set
- time-1.12.2with GHC
Used by in this set · 0
Nothing in this set depends on it.