Displaying 1 result from an estimated 1 matches for "precesion".
Did you mean:
precession
2012 Aug 08
1
random number generator with SNOW/ Parallel/ foreach
Dear All,
I have three classes of questions about generating random numbers with
different packages (windows xp 32bit R).
.
1. Suppose I would like to use package *foreach*, can I use current
Sys.time as a seed?
Although I can get the time up to1e-6 second precesion, the code below dose
not work well on a local machine with two cores. #################
library(foreach)
library(snow)
library(doSNOW)
testfun=function(){
options(digits.secs=6)
set.seed(slave.seed <- substring(Sys.time(), 21, 26))
a <- rnorm(5,0,1)...