[R] set.seed() and .Random.number

Taka Matzmoto sell_mirage_ne at hotmail.com
Tue Oct 24 07:24:31 CEST 2006


Hi R-users
I have two conditions. For each condition, 100 sets of 10 random numbers 
from N(0,1) need to be generated.  Here is my question.

At the begining I specify a seed number. I want to make the 100th set of the 
first condition and 1st set of the second conditon the same. What do I need 
to do ?

After generating 99th set of 10 random numbers and then saving .Random.seed 
then using .Random.seed for generating 100th set of the first condition and 
1st set of the second condtion. Is this right?

.Random.seed is a vector with 626 numbers, but set.seed() only accepts a 
integer number.
What do I need to do for saving .Random.seed and using the saved 
.Random.seed for setting set.seed() ?

Thanks

Taka

_________________________________________________________________
Get FREE company branded e-mail accounts and business Web site from 
Microsoft Office Live



More information about the R-help mailing list