10 lines
236 B
Plaintext
Raw Normal View History

2025-01-12 00:52:51 +08:00
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))