In reference to the statement set.seed()
, can I get the seed instead after running some code if I didn't set it explicitly?
I've been re-running some code (interactively / at the console) containing a function that randomises some sample of the input data (the function is part of the kohonen
package). After playing with it for some time to see the variety of output (it was an 'unstable' problem), I noticed one result that was pretty interesting. I of course had not used set.seed()
, but wondered if I could get the seed after running the code to reproduce the result?
In ?set.seed
I see
.Random.seed saves the seed set for the uniform random-number generator
But I don't know how that helps.
See Question&Answers more detail:os