comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » RANDOM question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
RANDOM question [message #33224] Mon, 16 December 2002 07:52 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
I would like to save the state of the pseudorandom-number generator in a
file so that I can resume (or reproduce) a calculation at a later time.
Does anyone know if the state variable ("seed") is always a 36-element
long vector? The docs say that "seed" is "a named variable that
contains a longword array of the proper length", but does not give the
"proper length".

Thanks, Ken


IDL> seed = 19
IDL> x = randomn(seed)
IDL> print, x
0.774932
IDL> help, seed
SEED LONG = Array[36]
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: "splitting" an index
Next Topic: supplementation to "splitting" an index

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:40:45 PDT 2025

Total time taken to generate the page: 1.60138 seconds