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

document that srand() returns the passed RNG #21248

Merged
merged 2 commits into from
Apr 7, 2017
Merged

Conversation

rfourquet
Copy link
Member

Till now this behavior was very useful as the shortest way to get a randomly seeded RNG was r = srand(MersenneTwister()). This could change in the future (cf. #16984), but I still think this will be a desirable feature (which was introduced in 68049d4, but not systematically).
Also, this PR documents the optional argument of srand when seeding from a file.

@rfourquet rfourquet added docs This change adds or pertains to documentation randomness Random number generation and the Random stdlib labels Apr 1, 2017
@rfourquet
Copy link
Member Author

Thanks for the review, I will merge in a couple of days if no objection comes.

@JeffBezanson JeffBezanson merged commit b3a5100 into master Apr 7, 2017
@pabloferz pabloferz deleted the rf/srand-doc branch April 8, 2017 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation randomness Random number generation and the Random stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants