future.seed #793
Replies: 1 comment
-
|
Hello. The reason for
> RNGkind()
[1] "Mersenne-Twister" "Inversion" "Rejection"
> set.seed(42)
> rnorm(3)
[1] 1.3709584 -0.5646982 0.3631284and [1] 1.3709584 -0.5646982 0.3631284 > RNGkind("L'Ecuyer-CMRG")
> RNGkind()
[1] "L'Ecuyer-CMRG" "Inversion" "Rejection"
> set.seed(42)
> rnorm(3)
[1] -0.93907708 -0.04167943 0.82941349See also #764, which has a discussion around this. FWIW, I would refrain from using Hope this helps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I find the results of this testing script regarding
future.seeda bit strange:y1 is equal to y0 which shows that even with
future.seed =Feverything works well w.r.t. the seedBut the package throws a strong warning.
y2 is totally different which worries me but then again it is also using a different seed each time.
I would conclude from this to ignore the stern warning and set
future.seed=Fin most cases ? But I am certainly missing sth. ?Beta Was this translation helpful? Give feedback.
All reactions