z-logo
open-access-imgOpen Access
Mersenne twister
Author(s) -
Makoto Matsumoto,
Takuji Nishimura
Publication year - 1998
Publication title -
acm transactions on modeling and computer simulation
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.38
H-Index - 51
eISSN - 1558-1195
pISSN - 1049-3301
DOI - 10.1145/272991.272995
Subject(s) - mersenne prime , pseudorandom number generator , polynomial , generator (circuit theory) , mathematics , finite field , algorithm , degree (music) , time complexity , discrete mathematics , prime (order theory) , computer science , combinatorics , mathematical analysis , power (physics) , physics , quantum mechanics , acoustics
A new algorithm called Mersenne Twister (MT) is proposed for generating uniform pseudorandom numbers. For a particular choice of parameters, the algorithm provides a super astronomical period of 219937 −1 and 623-dimensional equidistribution up to 32-bit accuracy, while using a working area of only 624 words. This is a new variant of the previously proposed generators, TGFSR, modified so as to admit a Mersenne-prime period. The characteristic polynomial has many terms. The distribution up to v bits accuracy for 1 ≤ v ≤ 32 is also shown to be good. An algorithm is also given that checks the primitivity of the characteristic polynomial of MT with computational complexity O(p2) where p is the degree of the polynomial.We implemented this generator in portable C-code. It passed several stringent statistical tests, including diehard. Its speed is comparable to other modern generators. Its merits are due to the efficient algorithms that are unique to polynomial calculations over the two-element field.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom