[R] reproducible sample() in mclapply

Berend Hasselman bhh at xs4all.nl
Tue Mar 13 18:43:54 CET 2012

On 13-03-2012, at 17:51, Lik Wee Lee wrote:

> Hi,
> Using the multicore package and calling sample() in mclapply,
> how do I get the results to be reproducible?
> I know the random number is seeded by process id and so is
> different for each run.

Don't know about those two packages.
Have a look at



More information about the R-help mailing list