[Issue 10550] Xorshift32 and Xorshift160 do not generate uniformly-distributed random numbers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 8 07:28:27 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10550



--- Comment #8 from Masahiro Nakagawa <repeatedly at gmail.com> 2013-07-08 07:28:26 PDT ---
(In reply to comment #7)
> What I'd really like is to have a source for the checking values for Xorshift
> used in the unittests.  Masahiro, do you recall how you obtained these values? 
> They're not in Marsaglia's paper, and Google searches to track down their
> source are proving fruitless. :-(

I remember correctly, I generated test cases from paper based C implementation.
I implemented C version first and generated test cases for D unittest.
After that, I implemented XorshiftEngine for D-ish code.

-- 
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