Last data update: 2014.03.03

R: Set the initial seed of the package or stream
SetPackageSeedR Documentation

Set the initial seed of the package or stream

Description

Sets the initial seed of the package or stream.

Usage

.lec.SetPackageSeed(seed)
.lec.SetSeed (name, seed)

Arguments

name

a character string giving the name of the stream.

seed

a vector of six integers. If it is shorter, the seed is extended to the length of 6 by default values 12345. If it is longer, it is truncated to the length of 6 by eliminating the last elements.

Details

Each state of a stream is given by three integer vectors of length 6: Ig gives the initital state of the stream, Bg gives the starting state of the substream that contains the current state, Cg gives the current state. Function .lec.SetPackageSeed sets Cg, Bg and Ig to the value of seed. Function .lec.SetSeed sets Ig to seed. L'Ecuyer recommends to use the ResetStream functions instead of SetSeed.

Value

The (possibly modified) seed that has been used.

See Also

ResetNextSubstream

Results