[R] Restoring .Random.seed

2007-05-31 Thread Talbot Katz
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

Re: [R] Restoring .Random.seed

2007-05-31 Thread Prof Brian Ripley
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

Re: [R] Restoring .Random.seed

2007-05-31 Thread Talbot Katz
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