Skip to content
Prev 3872 / 12125 Next

[R-pkg-devel] Change in normal random numbers between R 3.5.3 and R 3.6.0

Hmmmh, but does that also apply if the sample.kind has been set to the 
old version? I.e., would

if (getRversion()>="3.6.0") RNGkind(sample.kind="Rounding")
val <- 10
set.seed(val)
discard <- sample(1000, 100)
rnorm(36)

produce the same normal random numbers in 3.5.3 and 3.6.0? I would have 
expected it to, but it seems to produce the same normal random numbers 
as R version 3.6.0 in the previous version of the test code without the 
RNGkind call.

Best, Ulrike

Am 09.05.2019 um 16:19 schrieb Duncan Murdoch: