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

Home » Public Forums » archive » Re: RANDOM question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: RANDOM question [message #33220] Mon, 16 December 2002 08:20
K. Bowman is currently offline  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 Go to previous message
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Bug in IDLgrPolygon ?
Next Topic: "splitting" an index

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

Current Time: Sat Oct 11 00:47:42 PDT 2025

Total time taken to generate the page: 0.31066 seconds