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

[ bsd3, library, math, system ] [ Propose Tags ]

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:

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.

Versions [faq] 0.1, 0.1.1, 0.2,,,,,,
Dependencies base (<6), random, time (>=1.3) [details]
License BSD-3-Clause
Copyright (c) 2008. Don Stewart <>
Author Don Stewart
Maintainer Don Stewart <>
Revised Revision 1 made by HerbertValerioRiedel at Sun Aug 12 18:13:34 UTC 2018
Category Math, System
Home page
Source repo head: git clone git://
Uploaded by BenGamari at Mon Aug 29 13:53:32 UTC 2016
Distributions Debian:, LTSHaskell:, NixOS:, Stackage:
Downloads 15506 total (211 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]





Build with new smaller base library


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


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

For package maintainers and hackage trustees