set.vector.seed {rngwell19937}R Documentation

Seeding the generator with a numeric vector

Description

The function allows to seed the generator with a numeric vector of arbitrary length.

Usage

  set.vector.seed(seed)

Arguments

seed A numeric vector, whose components have nonnegative integer values at most 2^32-1.

Details

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.

Value

There is no output value.


[Package rngwell19937 version 0.5-2 Index]