mersenne-random-pure64: Generate high quality pseudorandom numbers purely using a Mersenne Twister

[ bsd3, library, math, system ] [ Propose Tags ] [ Report a vulnerability ]

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.

Flags

Automatic Flags
NameDescriptionDefault
small_base

Build with new smaller base library

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.2, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.2.0.5, 0.2.1.0, 0.2.2.0
Dependencies base (<6), random, time (>=1.3) [details]
Tested with ghc ==7.6.2, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.1
License BSD-3-Clause
Copyright (c) 2008. Don Stewart <dons00@gmail.com>
Author Don Stewart
Maintainer Don Stewart <dons00@gmail.com>
Revised Revision 1 made by HerbertValerioRiedel at 2018-08-12T18:13:34Z
Category Math, System
Home page http://code.haskell.org/~dons/code/mersenne-random-pure64/
Source repo head: git clone git://github.com/bgamari/mersenne-random-pure64
Uploaded by BenGamari at 2016-08-29T13:53:32Z
Distributions Arch:0.2.2.0, Debian:0.2.2.0, LTSHaskell:0.2.2.0, NixOS:0.2.2.0, Stackage:0.2.2.0
Reverse Dependencies 25 direct, 70 indirect [details]
Downloads 34644 total (68 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]