Issue 5509 - R250/521 pseudo-random number engine
Summary: R250/521 pseudo-random number engine
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 00:03 UTC by bearophile_hugs
Modified: 2024-12-01 16:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-01-31 00:03:54 UTC
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.
Comment 1 Infiltrator 2015-11-01 10:51:21 UTC
Are you still interested in adding  this generator?  If so, would you mind putting in a pull request on github?
Comment 2 dlangBugzillaToGithub 2024-12-01 16:13:49 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9896

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB