Re: [R] set random numbers seed for different cpu's

2011-11-17 Thread R. Michael Weylandt
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 somethin

Re: [R] set random numbers seed for different cpu's

2011-11-17 Thread R. Michael Weylandt
http://search.dilbert.com/comic/Random%20Number%20Generator In all seriousness, you could set the seed differently on each machine after putting jobs through Torque (i.e., as part of the batch script, maybe using some piece of hardware id you can get through system() somehow or other: possibly net

[R] set random numbers seed for different cpu's

2011-11-17 Thread fantomas
Hi I'm running the same R script (throuth linux shell) of several cpu's. This R program uses random numbers and the result should be different every time. But if put jobs (through Torque) for several cpu's I get the same result. As a resealt my program saves numbers in file with randomly generate