[Issue 5509] New: R250/521 pseudo-random number engine

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 31 00:06:07 PST 2011


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

           Summary: R250/521 pseudo-random number engine
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-01-31 00:03:54 PST ---
Beside the current ones, I'd like another pseudo-random number generator to be
present in the std.random module, the R250/521:
http://en.literateprograms.org/R250/521_%28C%29
http://en.literateprograms.org/Special:Downloadcode/R250/521_%28C%29

The implementation is easy, the quality of the generated numbers is not bad
(worse than Mersenne Twister but better than congruential generators), and the
performance is very good (among the best, in my tests). So it has a high
performance for its quality level. I suggest to use the Mersenne Twister to
initialize its r250_buffer and r521_buffer arrays. I have a D translation, if
you want.

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