The mersenne-random package

[ Tags: 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

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.

cabal install -fuse_sse2

On an x86 system, for performance win.

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]

Properties

Versions 0.1, 0.1.1, 0.1.2, 0.1.3, 1.0, 1.0.0.1
Dependencies base (<5), old-time [details]
License BSD3
Copyright (c) 2008-2011. Don Stewart <dons00@gmail.com>
Author Don Stewart
Maintainer Don Stewart <dons00@gmail.com>
Category Math, System
Home page http://code.haskell.org/~dons/code/mersenne-random
Uploaded Sat Jun 18 18:36:20 UTC 2011 by DonaldStewart
Distributions Debian:1.0.0.1, NixOS:1.0.0.1, Tumbleweed:1.0.0.1
Downloads 2569 total (17 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
small_base

Build with new smaller base library

DisabledAutomatic
use_sse2

Build with SSE2 support.

DisabledAutomatic
use_altivec

Build with Altivec support.

DisabledAutomatic
big_endian64

Build for a big endian 64 bit machine.

DisabledAutomatic

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for mersenne-random-1.0.0.1

[back to package description]
To build with sse2 support (core2 and other intels)

    $ runhaskell Setup.lhs -f use_sse2

Similar flags for altivec on the mac