[erlang-questions] [ANN] xorshift1024* PRNG for Erlang
Kenji Rikitake
kenji@REDACTED
Tue Sep 23 03:55:51 CEST 2014
I've released one more non-cryptographic random number generator
implementations for Erlang. This is still in the alpha phase, so bug
reports and enhancements welcome.
xorshift1024* (exs1024)
https://github.com/jj1bdx/exs1024/
xorshift+ and xorshift* pseudo random number generators (PRNGs) look
promising as faster and more compact alternatives to Mersenne Twister PRNGs
for 64-bit execution environments.
The implementations is in Erlang without NIFs, with the MIT license.
xorshift1024* generates 64-bit integer sequences.
xorshift1024* has sixteen (16) 64-bit integers for the internal state,
and the period is (2^1024-1), much longer than tinymt-erlang, and
comparatively a good alternative against sfmt-erlang. The execution
time of exs1024 is ~x2 of random module on OTP 17.3 with HiPE on OS X
x86_64 and FreeBSD amd64 environments.
See http://xorshift.di.unimi.it/ for the further details of xorshift+ and
xorshift* algorithms.
Regards,
Kenji Rikitake
More information about the erlang-questions
mailing list