Generate high quality pseudorandom numbers purely using a Mersenne Twister

Latest on Hackage:[email protected]:1

See all snapshots mersenne-random-pure64 appears in

BSD-3-Clause licensed by Don Stewart
Maintained by Don Stewart

Module documentation for

This version can be pinned in stack with:[email protected]:13f413cf88c33b5783298b34df95524e341e9f6d7ac9517f6b632888fa452df1,2366
  • System
    • System.Random
      • System.Random.Mersenne
        • System.Random.Mersenne.Pure64
          • System.Random.Mersenne.Pure64.Base
          • System.Random.Mersenne.Pure64.MTBlock

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.

Depends on 3 packages(full list with versions):
Used by 1 package in lts-0.7(full list with versions):