[R] set.seed(x)

Duncan Murdoch murdoch.duncan at gmail.com
Thu Jun 13 19:32:19 CEST 2013


On 13/06/2013 11:59 AM, Pooya Lalehzari wrote:
> Hello,
> If I use set.seed(x) to set a seed for the random number generator, how can I undo that to revert a random output every time I run my code?

If you remove .Random.seed, then the next time a seed is needed it will 
be generated from the system clock, so it will appear random.

Duncan Murdoch



More information about the R-help mailing list