Skip to content
Prev 8454 / 12125 Next

[R-pkg-devel] Save and restoring random number seed in a package function

a single integer.

If I recall correctly, S-plus's set.seed() would accept a .Random.seed
value as an input.  It did some basic validation checks on it and set it as
the current .Random.seed.  I don't recall the name of the argument.  The
format of the seed depends on the generator used - I think it used the
nature of the proffered seed to get the likely generator, but there may
have also been arguments to specify the generator explicitly.

I think this would be a nice thing to add to R's set.seed.

-Bill
On Wed, Sep 14, 2022 at 8:11 AM Noah Greifer <noah.greifer at gmail.com> wrote: