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 generation #312

Open
fdmalone opened this issue Jun 20, 2024 · 0 comments
Open

Random number generation #312

fdmalone opened this issue Jun 20, 2024 · 0 comments

Comments

@fdmalone
Copy link
Collaborator

We currently do a bit of a hack to seed the RNGs when running in parallel (a random seed is chosen and other processors are seeded using an offset), which probably isn't the most robust thing to do.

numpy now has better support for this type of scenario: https://numpy.org/doc/stable/reference/random/parallel.html (xref https://scicomp.stackexchange.com/questions/23547/parallel-mersenne-twister-for-monte-carlo) and we should probably do that instead with some support for backwards reproducibility (which would not be the default but could still work).

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