Skip to content
Prev 2492 / 398506 Next

R random number generator

On Wed, 28 Apr 1999, Mai Zhou wrote:

            
Um: there is no such version. R 0.64.0?
That is a logical error. Because Martin M put backwards compatibility code
in, all initial .Random.seed of length 3 are taken to be mistakes for the
earlier specification of the Wichmann-Hill generator. Although the 
help page does not say so, both "Marsaglia-Multicarry" and "Super-Duper"
need seeds of length 3.  However, this does not apply if you have
already successfully set the RNG kind. So the work-around is
[1] 0.5641106 0.2932388 0.6696743 0.9174765 0.1490988

The rest of the examples I think come in the same way: it depends
on what has been set before. I'll look into it, but I don't think
anyone anticipated that one would swap generators during a session.

[Martin: I am about to commit some fixes.]