[erlang-questions] TinyMT PRNG for Erlang/OTP

Kenji Rikitake <>
Thu Apr 26 15:32:44 CEST 2012

TinyMT is a pseudo random number generator (PRNG) which has 2^127-1
period, and is designed for parallel execution (with orthogonal multiple
keys and seeds).  I've released a preliminary piece of example code at:


Note: this implementation is in pure Erlang (i.e., no NIF), and a
preliminary benchmark suggests that it's x0.5 - x1.5 faster than the
random module functions (i.e., of competitive speed).

It's BSD licensed, so feel free to test it by yourself, and feedbacks
are always welcome.

Kenji Rikitake

More information about the erlang-questions mailing list