Skip to content
Prev 22619 / 398502 Next

set.seed

You either need to

1) set set.seed before the first run, then set it  again to the first
value.

or

2) save .Random.seed and reset it by

.Random.seed <- temp.seed

Beware that the second approach is not sufficient with the Box-Muller
method.

Your problem is that you have mixed the two approaches.

Hope this helps.
On Mon, 12 Aug 2002 Jim_Garrett at bd.com wrote: