Can I get.seed() somehow?

Posted by a different ben on Stack Overflow See other posts from Stack Overflow or by a different ben
Published on 2013-10-27T03:29:41Z Indexed on 2013/10/27 3:53 UTC
Read the original article Hit count: 160

Filed under:

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 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.

© Stack Overflow or respective owner

Related posts about r