[R-sig-hpc] Rmpi and random number generation
edd at debian.org
Fri Jul 19 23:58:09 CEST 2013
On 19 July 2013 at 21:30, Hodgess, Erin wrote:
| Here is an Rmpi question, please: I am trying to do a little demo program in which I generate a few random numbers.
| All of the random numbers are the same across the various variables. Has anyone run into this, please?
1) See eg 'Section 6: Random-number generation' in the vignette of the
package "parallel" (part of base R) for an introduction.
2) Even the most naive Google search for 'Rmpi parallel RNG' (and you surely
tried something like that first, yes?) leads to this fine poster by the
author of the Rmpi package:
which contains an example.
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the R-sig-hpc