[Rcpp-devel] repeatable random numbers

Zhongyi Yuan zhongyi-yuan at uiowa.edu
Thu Sep 1 19:06:53 CEST 2011

Hello everyone,

I am conducting some numerical studies that I want to be repeatable. In
other words, I want others who run my code to get exactly the same result as
I get.
This can be easily done in pure R.

But since I want the random number generation in Cpp, I think I need a seed
that can be retrieved even after re-compilation. Can this done with

Thanks for your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110901/c92a7c39/attachment-0001.htm>

More information about the Rcpp-devel mailing list