Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / System Interface / Global Parameters /

$RandomState

FilledSmallSquare $RandomState gives a representation of the internal state of the pseudorandom generator used by Random.

FilledSmallSquare The value of $RandomState changes every time Random is called.

FilledSmallSquare You can use s = $RandomState to explicitly save the value of $RandomState, and $RandomState = s to restore.

FilledSmallSquare The value of $RandomState is always a long integer chosen from a certain large set of possibilities. You can assign $RandomState only to values in this set.

FilledSmallSquare You can use Block[$RandomState, expr] to localize the value of $RandomState during the evaluation of expr.

FilledSmallSquare See Section 3.2.3.

FilledSmallSquare See also: SeedRandom.

FilledSmallSquare New in Version 3.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.