I am happy to announce the availability of Mersenne Twister (MT) in
erlang. MT is a Random Number Generator (RNG) that is supposed to be
both fast and have an astronomical period of 2**19937-1. For more
information about MT in general, please take a look at
The erlang version is available at http://www.wallin.cx. The package is
named 'erlmt.tar.gz' and contains a module 'mt19937' that is an MT
implementation in erlang. The package also contains an erl driver to a
MT implementation in C. Due to licensing issues, I did not include it
but you also need to get a file called 'cokus.c' to get this working. It
should be available on the sites above.
The MT in erlang is unfortuantely, really slow, improvements are
welcome. The erl driver is somewhat faster than the random module
included in erlang but still really slow.
All results are the number of random numbers generated during 10
seconds. This was done on a 500 MHz iBook running R7B-3 under OS X