The R Project SVN R

Rev

Rev 56787 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

library(parallel)

# use the same random numbers for all values
set.seed(1)
simplify2array(mclapply(rep(4, 5), rnorm))

set.seed(1)
simplify2array(mclapply(rep(4, 5), rnorm, mc.preschedule = FALSE,
                mc.set.seed = FALSE))