Skip to content
Back to formatted view

Raw Message

Message-ID: <51BA0223.5080201@gmail.com>
Date: 2013-06-13T17:32:19Z
From: Duncan Murdoch
Subject: set.seed(x)
In-Reply-To: <92FD11F467D9CA41A8AEA01FE4D76DEB0AC6CA85@EX02.platinum.com>

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