FunWithR / MonteCarlo

An R package for simulation studies.
33 stars 15 forks source link

More than one cpu on mac OS #6

Closed mabdrabo closed 6 years ago

mabdrabo commented 7 years ago

https://github.com/FunWithR/MonteCarlo/blob/bd8d37baeecddccb2798eae8c8370f158a450b2a/R/MonteCarlo.R#L85

Gave error >>

Error in rlecuyer::.lec.SetPackageSeed(seed) : Seed[0] >= -210, Seed is not set.

When I edited that line to

'seed<-as.numeric(paste(sample(0:9,5,replace=TRUE), collapse=""));',

It worked, my hypothesis was that it's a big integer that it's not happy with