set.vector.seed {rngwell19937} | R Documentation |
The function allows to seed the generator with a numeric vector of arbitrary length.
set.vector.seed(seed)
seed |
A numeric vector, whose components have nonnegative integer
values at most 2^32-1 . |
A call of set.vector.seed
implies setting the "mrg32k5a"
initialization as a side effect.
The input numbers should have integer values in the interval
[0, 2^32 - 1]
. They may be represented by numeric data type
(double precision floating point numbers). This is actually necessary,
if some of the component of the vector seed
is at least 2^31
.
If seed
has length 1 and 0 <= seed <= 2^31 - 1
, then
set.vector.seed(seed)
and set.seed(seed)
are equivalent.
If seed
has length 1 and 2^31 + 1 <= seed <= 2^32 - 1
, then
set.vector.seed(seed)
and set.seed(seed - 2^32)
are equivalent.
There is no output value.