HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulemersenne-random-pure64-0.2.2.0Haskell98

System.Random.Mersenne.Pure64.MTBlock

A purely functional binding 64 bit binding to the classic mersenne twister random number generator. This is more flexible than the impure 'mersenne-random' library, at the cost of being a bit slower. This generator is however, many times faster than System.Random, and yields high quality randoms with a long period.

  • 1 type
  • 5 values

Block type

1 declaration

Block functions

3 declarations

Misc functions

2 declarations
valuemixWord64 :: Word64 -> Word64
#

MT's word mix function.

(MT applies this function to each Word64 from the buffer before returning it)