I want two independent random streams from Armandro Rand library. It seems as if they both use the same global random stream
I can generate random numbers using the Armandillo library through the following:
arma :: arma_rng :: set_seed (13) double r = arma :: randu ()
but I'm not sure how to get two random streams in Python I know that I randomize it Using the library, I can do the following:
rn = random.RandomState (13) rn2 = random.RandomState (11)
Now if I run rn.rand () and rn2.rand () then they are independent And do not affect each other. Any ideas?
Thank you!
No comments:
Post a Comment