[Rd] Which function can change RNG state?

Gábor Csárdi csardi.gabor at gmail.com
Sun Feb 8 15:40:42 CET 2015


On Sat, Feb 7, 2015 at 10:52 PM, otoomet <otoomet at gmail.com> wrote:
[...]

> random numbers.   For instance, can I be sure that
> set.seed(0); print(runif(1)); print(rnorm(1))
> will always print the same numbers, also in the future version of R?


I don't know if there is intention to keep this reproducible across R
versions, but it is already not reproducible across platforms (with the
same R version):
http://stackoverflow.com/questions/21212326/floating-point-arithmetic-and-reproducibility
FYI.

Gabor

	[[alternative HTML version deleted]]



More information about the R-devel mailing list