Re: RANDOM question [message #33220] |
Mon, 16 December 2002 08:20 |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <MPG.1867a99739e4004f989a70@news.frii.com>,
David Fanning <david@dfanning.com> wrote:
> It certainly *seems* to be a 36-element array. But why
> not store it in a pointer (or pointer field) just to be
> on the safe side.
The problem isn't passing it around during a single run, it's writing to
a file to retrieve later. In a netCDF file I need to declare the size
of the variable when I create the file.
Ken
|
|
|
Re: RANDOM question [message #33223 is a reply to message #33220] |
Mon, 16 December 2002 08:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kenneth Bowman (k-bowman@null.tamu.edu) writes:
> 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".
It certainly *seems* to be a 36-element array. But why
not store it in a pointer (or pointer field) just to be
on the safe side.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|