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

Random number generator as argument #7

Open
bicycle1885 opened this issue Sep 8, 2022 · 0 comments
Open

Random number generator as argument #7

bicycle1885 opened this issue Sep 8, 2022 · 0 comments

Comments

@bicycle1885
Copy link
Collaborator

There are several rand function calls and friends that depend on the global random number generator. This is okay, but it is not be a standard way of implementing simulation code because multithreaded code will need more control on random number generation for reproducibility. The standard way is passing a random number generator (RNG) as the first argument of a function, as in rand of Base. I think we also should follow this convention so that users can easily find a way to control it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant