Suppose I simulate a data set using set.seed(1234); rnorm(100). Later, I would like to find the 90th data value simulated without re-simulating the whole data set. How can this be done? Does .Random.seed play a role? While this may seem to be an overly simplified problem (especially when one could just run the whole code again), this type of problem occurs in more complicated Monte Carlo simulations where perhaps a 1,000 data sets are simulated and something goes wrong on data set #90. One would want to view data set #90 without having to simulate data sets #1- #89.
+1
A:
So store the value of the then-current seed and start from there.
Dirk Eddelbuettel
2009-09-08 17:12:45