Displaying 1 result from an estimated 1 matches for "ellerbcn".
2013 May 08
4
Correctly Setting New Seed
Could someone please suggest a method to store the current random seed. I'm having trouble understanding how to correctly use set.seed and .Random.seed.
Specifically, I have the following code that crashes:
set.seed(seed)
for(i in 1:10){
print( runif(1))
}
To get around this I need to split the number of iterations into chunks:
set.seed(seed)
for(i in 1:5){
print(runif(1))