Sets the initial seed of the package or stream.
a character string giving the name of the stream.
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.
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
.lec.SetSeed sets Ig to
seed. L'Ecuyer recommends to use the
ResetStream functions instead of
The (possibly modified) seed that has been used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.