I have code that uses both RandomReal
and RandomInteger
a number of times to produces a sequence of $n$ data sets. After closing the notebook and quitting the kernel, I would like to be able to start the code where I left off in the random sequence, and generate an additional $m$ data sets.
I can do this with the old Random
function and $RandomState
. But, how do I do it with RandomReal
and RandomInteger
?
Random`GetRandomState
andRandom`SetRandomState
. These are undocumented and might crash your kernel. I did get a crash with them yesterday. Related: mathematica.stackexchange.com/questions/91523/… $\endgroup$ – Szabolcs Aug 14 '15 at 12:20