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 . |
Function set.vector.seed()
generalizes the initialization
"mrg32k5a"
for longer seeds.
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.
It may be proved that every two different input sequences of length at most 3 produce different initial states of WELL19937a. There is no need to care about a sufficiently random bit pattern of the seed. In particular, the seeds 0, 1, or 2 are not worse than any other seed and produce unrelated sequences.
There is no output value.