Skip to content
Prev 3876 / 12125 Next

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

Mark,

I used

if (getRversion()>="3.6.0") RNGkind(sample.kind="Rounding")

And that works. Actually, using rnorm afterwards also yields the same random numbers.
My question arose from the fact that I confused myself about the noLD output I was supposed to reproduce. Therefore, my problem should be entirely explained by Duncan Murdoch's initial explanation: the sample() change does not only lead to different results in discrete sampling but also to different results from random number calls for other functions (like rnorm).

Best, Ulrike

Am 10.05.2019 um 04:58 schrieb R. Mark Sharp: