mersenne-random: Generate high quality pseudorandom numbers using a SIMD Fast Mersenne Twister
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
This library uses SFMT, the SIMD-oriented Fast Mersenne Twister, a variant of Mersenne Twister that is much faster than the original. It is designed to be fast when it runs on 128-bit SIMD. It can be compiled with either SSE2 and PowerPC AltiVec support, to take advantage of these instructions.
By default the period of the function is 2^19937-1, however, you can compile in other defaults. Note that this algorithm on its own is not cryptographically secure.
For more information about the algorithm and implementation, see the SFMT homepage,
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
and, Mutsuo Saito and Makoto Matsumoto, /SIMD-oriented Fast Mersenne Twister: a 128-bit Pseudorandom Number Generator/, in the Proceedings of MCQMC2006, here:
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/sfmt.pdf
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
small_base | Build with new smaller base library | Disabled |
use_sse2 | Build with SSE2 support. | Disabled |
use_altivec | Build with Altivec support. | Disabled |
big_endian64 | Build for a big endian 64 bit machine. | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- mersenne-random-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.1, 0.1.2, 0.1.3, 1.0, 1.0.0.1 |
---|---|
Dependencies | base, old-time [details] |
License | BSD-3-Clause |
Copyright | (c) 2008. Don Stewart <dons@galois.com> |
Author | Don Stewart |
Maintainer | Don Stewart <dons@galois.com> |
Category | Math, System |
Home page | http://code.haskell.org/~dons/code/mersenne-random |
Uploaded | by DonaldStewart at 2008-06-05T21:39:44Z |
Distributions | LTSHaskell:1.0.0.1, NixOS:1.0.0.1, Stackage:1.0.0.1 |
Reverse Dependencies | 9 direct, 3690 indirect [details] |
Downloads | 7120 total (47 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |