You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to set random seed using RcppParallel and RcppArmadillo to permutation #205
I am using RcppParallel and the shuffle function of RcppArmadillo to shuffle vec, But the result is not repeatable even I used the set.seed of R or the withr::with_seed or arma::set_seed in the C++ codes. To be reproducible, is there a function like set.seed of R base to do this? Thank you.
Activity
jwood000 commentedon Oct 25, 2023
Dealing with RNG's in parallel is a non-trivial tasks. As such, I would look at the library
dqrnghere: https://github.com/daqana/dqrng