SetPackageSeed: Set the initial seed of the package or stream

Description Usage Arguments Details Value See Also

Description

Sets the initial seed of the package or stream.

Usage

1
2

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


rlecuyer documentation built on May 29, 2017, 2:50 p.m.