[R] RNG in R

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Fri Jul 26 17:35:47 CEST 2002


On Fri, 26 Jul 2002, Louisell, Paul , T. wrote:

> Hi,
>
> I'm working with a programmer on translating code I wrote for a simulation
> in S into FORTRAN. Since the S source code is not available, I decided to
> use the random number generator (RNG) in R. The problem is that the R code
> is complex enough that we can't isolate the proper source files to include.
> Although we can link to the C code and call the RNG, we haven't been able to
> find the files that update the value of .Random.seed. Does anyone know
> exactly which files and libraries in the source code are necessary for the
> RNG to work proplerly? We want to avoid using the entire R installation.

The RNG is in the file RNG.c, surprisingly enough.

Also, unsurprisingly, that contains code to read in and write out
.Random.seed, and you will not want that code unless you are writing an R
package.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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