On Jun 7, 2013 12:12 PM, "Dirk Eddelbuettel" <[email protected]> wrote: > Maybe what you want is more easily done with the RNGs from C++ (esp C++11), > Boost, ... or something different from R. It may work, but we are > (currently) simply not set up for it.
If you go with something different from R, I've had good luck with Tina's RNG. (TRNG) It's a fairly complete, fast, and easy to use C++ library... there might even be a reason to wrap it for Rcpp someday. Krzysztof > > The model is to call set.seed(somenumber) from R before going to C++, and > being assured that a) you get the same stream in C++ as you would in R as > well as b) that you can continue fine in R once you are back. > > What you want is a little different. It may well be supported, but maybe > just not (yet ?) by us. Or it may not be supported. Please keep working at > it, this would be useful to sort this out. > > Just because you can get the integer seed via R from C++ does yet mean that > the generator is a sane state. Just saying... > > Dirk > > -- > Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com > _______________________________________________ > Rcpp-devel mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
