Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R250/521 pseudo-random number engine #9896

Open
dlangBugzillaToGithub opened this issue Jan 31, 2011 · 1 comment
Open

R250/521 pseudo-random number engine #9896

dlangBugzillaToGithub opened this issue Jan 31, 2011 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

bearophile_hugs reported this on 2011-01-31T00:03:54Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=5509

CC List

  • lt.infiltrator

Description

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.
@dlangBugzillaToGithub
Copy link
Author

lt.infiltrator commented on 2015-11-01T10:51:21Z

Are you still interested in adding  this generator?  If so, would you mind putting in a pull request on github?

@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants