-
Notifications
You must be signed in to change notification settings - Fork 23
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
Question on RNGs for use in parallel simulations #37
Comments
Random123 is suitable for running in parallel, and All the RNGs in the Random123 family is suitable for this approach. 2x and 4x indicates the number of random numbers generated at a time. 4x with |
But does this guarantee statistically independent RNG instances? I thought for parallel sims, the approach with
Yes I do need to store the seed , which is why I would rather use |
They should be statistically independent but using |
Does anyone have some example code for using Random123 with |
This is a question rather than an issue. I hope that's OK to ask here.
I would like to use a RNG for parallel simulations, and so want statistically independent RNGs for each worker process.
For
Base.Random.MersenneTwister
, I use something like this:I would like to use a RNG from the
Random123
family.Is this a good choice for parallel sims?
My code would be something like:
Is using
set_counter!
this way the right approach to give independent RNGs?Will it work for all RNGs in the Random123 family?
Why would I choose 2x or 4x version?
Which particular RNG would you recommend?
The text was updated successfully, but these errors were encountered: