Skip to content
Prev 277759 / 398506 Next

set random numbers seed for different cpu's

Sorry -- that came off as very muddled.

What I meant to say:

To make it (almost) certain you will get different results on each
machine, you can reset the PRNG seed on each machine in some way
unique to that machine. What immediately came to mind was IP address,
which you can access with something like this:

x <- system("curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<>
:]//g' ", intern = TRUE)
# Note you might have to tweak it for your OS

Michael

On Thu, Nov 17, 2011 at 3:31 PM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote: