# Problems with setting .Random.seed (PR#179)

**ripley@stats.ox.ac.uk
**
ripley@stats.ox.ac.uk

*Thu, 29 Apr 1999 10:48:58 +0200 (MET DST)*

I have commited fixes for 0.64.1 for
(1) From: Mai Zhou <mai@ms.uky.edu>
>* .Random.seed <- c(1, 1:2)
*>* .Random.seed
*[1] 1 1 2
>* runif(5)
*Warning: Wrong length .Random.seed; forgot initial RNGkind? set to
Wichmann-Hill[1] 0.02253721 0.84832584 ........
Here the length of the seed was being tested before the kind was
picked out, so the length of the previous type was used.
(2)
>* .Random.seed <- c(0, 30269, 30307, 30323)
*>* runif(1)
*[1] 0
>* .Random.seed
*[1] 0 0 0 0
and it remains zero thereafter.
This was particularly invidious as the help has said (for a long time,
despite my commenting several times, even in the `R Complements')
The seed, `.Random.seed[-1] == r[1:3]' is an
integer vector of length 3, where each `r[i]' is
in `1:p[i]', where `p' is the length 3 vector of
primes, `p = (30269, 30307, 30323)'. The
This should be (and will be) 1:(p[1] - 1).
(3) The help page now says what the length of the seed is and the
restrictions for the "Marsaglia-Multicarry" and "Super-Duper" kinds
and corrects the description of the latter.
Brian
--
Brian D. Ripley, ripley@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-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._