Tal Galili
2009-Sep-30 15:02 UTC
[R] Managing random number generating, while using Condor parallel computing
Hello all, Recently I started playing with running R scripts on the Condor system in my institute. (For more on this, have a look at: Running Long R Jobs with Condor DAG by Xianhong Xie link: http://cran.r-project.org/doc/Rnews/Rnews_2005-2.pdf ) Might someone advice me about the following question: How should I handle the RNG (random number generation) in the running of parallel instances of R on different machines. For example, Let's say I wish to run 10 times a script that generates 100 normal variables and return their mean. The script itself is easy to write. What I am not sure about is what should I do with the seed. Should I let the program choose one for itself ? Should I set a seed according to some function of the current process ? Is there an outside source I should get the numbers from? Thanks, Tal ---------------------------------------------- My contact information: Tal Galili E-mail: Tal.Galili@gmail.com Phone number: 972-52-7275845 FaceBook: Tal Galili My Blogs: http://www.talgalili.com (Web and general, Hebrew) http://www.biostatistics.co.il (Statistics, Hebrew) http://www.r-statistics.com/ (Statistics,R, English) [[alternative HTML version deleted]]
Dirk Eddelbuettel
2009-Sep-30 15:56 UTC
[R] Managing random number generating, while using Condor parallel computing
On Wed, Sep 30, 2009 at 05:02:15PM +0200, Tal Galili wrote:> Might someone advice me about the following question: > How should I handle the RNG (random number generation) in the running of > parallel instances of R on different machines. >http://lmgtfy.com/?q=site%3Ar-project.org+parallel+RNG -- Three out of two people have difficulties with fractions.