Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

[Date Index] [Thread Index] [Author Index]

Search the Archive

random number seeds

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: random number seeds
  • From: keiper
  • Date: Thu, 21 Oct 93 09:37:20 -0600


   >what i would like
   >to do is save the current state of the computation from time to time
   >so that it could be restarted. this means that i need to know the
   >"current" random number seed so that the restart can use it. 


You want to use $RandomState

In[12]:= rs = $RandomState;
In[13]:= Random[ ]
Out[13]= 0.0431805
In[14]:= $RandomState = rs;
In[15]:= Random[ ]
Out[15]= 0.0431805

Jerry B. Keiper
keiper at wri.com
Wolfram Research, Inc.







  • Prev by Date: Taylor expansion
  • Next by Date: MatrixInsert
  • Previous by thread: random number seeds
  • Next by thread: Taylor expansion