Hi.
Suppose I have a function which does some random number generation within.
The random number generation inside the function changes the value of
.Random.seed in the calling environment. If I want to restore the
pre-function call .Random.seed, I can do:
save.seed-.Random.seed
On Thu, 31 May 2007, Talbot Katz wrote:
Hi.
Suppose I have a function which does some random number generation within.
The random number generation inside the function changes the value of
.Random.seed in the calling environment. If I want to restore the
the setRNG package, which has a specific
methodology for saving the random number generator state.
-- TMK --
212-460-5430home
917-656-5351cell
From: Prof Brian Ripley [EMAIL PROTECTED]
To: Talbot Katz [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] Restoring .Random.seed
Date