[Issue 10550] Xorshift32 and Xorshift160 do not generate uniformly-distributed random numbers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 5 07:35:38 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10550
--- Comment #2 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2013-07-05 07:35:38 PDT ---
I also think the choice of a, b, c values may be in error: currently we have
alias XorshiftEngine!(uint, 32, 13, 17, 5) Xorshift32;
... but I think this is most likely a typo for
alias XorshiftEngine!(uint, 32, 13, 17, 15) Xorshift32;
as the paper states that there should be a < c and the triple 13, 17, 5 is not
found among the list of valid triples (while 13, 17, 15 is).
However, correcting this does not prevent the unittest fail described in the
previous comment.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list