Perl implementation of the Mersenne Twister algorithm


Math::Random::MT provides an implementation of the Mersenne Twister pseudorandom number generator algorithm developed by Makoto Matsumoto and Takuji Nishimura.

It is related to but a different algorithm than a previous work by the same authors - the TT800 algorithm, which keeps less state data (MT uses 624 numbers compared to TT800's 25). Consequently, the period is much larger - 2^19937-1 compared to TT800's 2^800-1. For comparison, ISAAC's period is 2^8295 values on average.

For more information, peruse M. Matsumoto and T. Nishimura's paper: <URL:>.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libmath-random-mt-perl