EVOLUTION-MANAGER
Edit File: SetPackageSeed.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Set the initial seed of the package or stream</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for SetPackageSeed {rlecuyer}"><tr><td>SetPackageSeed {rlecuyer}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Set the initial seed of the package or stream</h2> <h3>Description</h3> <p>Sets the initial seed of the package or stream.</p> <h3>Usage</h3> <pre> .lec.SetPackageSeed(seed) .lec.SetSeed (name, seed) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>name</code></td> <td> <p>a character string giving the name of the stream.</p> </td></tr> <tr valign="top"><td><code>seed</code></td> <td> <p>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. </p> </td></tr> </table> <h3>Details</h3> <p>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 <code>.lec.SetPackageSeed</code> sets Cg, Bg and Ig to the value of <code>seed</code>. Function <code>.lec.SetSeed</code> sets Ig to <code>seed</code>. L'Ecuyer recommends to use the <code><a href="ResetNextSubstream.html">ResetStream</a></code> functions instead of <code>SetSeed</code>.</p> <h3>Value</h3> <p>The (possibly modified) seed that has been used.</p> <h3>See Also</h3> <p><code><a href="ResetNextSubstream.html">ResetNextSubstream</a></code></p> <hr /><div style="text-align: center;">[Package <em>rlecuyer</em> version 0.3-4 <a href="00Index.html">Index</a>]</div> </body></html>