[R] random sequence

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Apr 26 18:28:03 CEST 1999


> X-Authentication-Warning: stat.math.ethz.ch: majordom set sender to 
owner-r-help at stat.math.ethz.ch using -f
> From: yudi at hermes.ucd.ie
> Date: Mon, 26 Apr 1999 13:38:10 +0000 (GMT)
> Subject: [R] random sequence
> To: R-Mailing-List <r-help at stat.math.ethz.ch>
> Comments: Authenticated sender is <yudi at pop3.ucd.ie>
> 
> Dear All,
From: yudi at hermes.ucd.ie

> How can I get the same stream of random numbers in R and S?
> 
> I know one of the generators in R is Super-Duper also used in S-plus,

Sorry, but no, it isn't quite the same as I understand them. S-PLUS
skips members of the sequence occasionally. But it depends what you
mean here: S-PLUS != S and I very much doubt you have S.

I don't know why you want to do this: if you use any of the built-in
operations (such as rnorm) you will get different answers as different
algorithms are used.  If all you want is a stream of runif() type,
implement your version on both systems to be sure.

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