From csardi.gabor at gmail.com  Sun Feb  8 15:40:42 2015
From: csardi.gabor at gmail.com (=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=)
Date: Sun, 8 Feb 2015 09:40:42 -0500
Subject: [Rd] Which function can change RNG state?
In-Reply-To: <1423367536855-4702935.post@n4.nabble.com>
References: <1423367536855-4702935.post@n4.nabble.com>
Message-ID: <CABtg=Kna=C6hcxE+iwK0FvKHaHSAht3RDE1ttbtq_hjNPzmCuA@mail.gmail.com>

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]]



[Rd] Which function can change RNG state?
=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=