[R] using R's random numbers in another program

Ramon Diaz-Uriarte ramon-diaz at teleline.es
Thu Dec 14 16:40:54 CET 2000

Dear All,

I want to use R's random number in a C++ program (I can link libRmath either
as shared or static library).  I have two questions:

1. If I understand correctly, the underlaying random number generator will be
Marsaglia-multicarry, UNLESS I provide my own.  In other words (unless I
provide it) I cannot use some of the other RNG's available from within R, such
as Mersenne-Twister? 

2. I am using another library, which uses it own RNG; I guess there is no
problem in using both R's RNG's (for some of the functions in the code)  and
this other library's RNG?



Ramón Díaz-Uriarte
Triana 47
28016 Madrid

email:ramon-diaz at teleline.es
Phone: +-34-918-513-966

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list