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

Home » Public Forums » archive » RANDOMU bug (and HTML help)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
RANDOMU bug (and HTML help) [message #14330] Sun, 21 February 1999 00:00 Go to previous message
landsman is currently offline  landsman
Messages: 93
Registered: August 1991
Member
Versions 5.1.1 and 5.2 of IDL have a bug in the RANDOMU (and RANDOMN) function
such that the SEED variable is initialized to the same value at the start of
each session, rather than being intialized by the system clock (see example
below). I believe that so long as one as one stays within one IDL session
that this causes no problems, but if one is, say, combining Monte Carlo
simulations from different IDL sessions, then the results will be decidedly
unrandom.

RSI knows about this problem and say that they are giving it very high
priority for a fix.

On another subject, does anyone know if there is a HTML help distribution for
IDL V5.2, like there was for IDL V5.1? I couldn't find one on the CD-Rom
distribution.

--Wayne Landsman landsman@mpb.gsfc.nasa.gov

mpb{landsman}102: idl

IDL> print,!VERSION
{ sparc sunos unix 5.2 Oct 30 1998}
IDL> print,randomu(seed)
0.415999
IDL> print,randomu(seed)
0.0919649
IDL> exit

mpb{landsman}102: idl
IDL Version 5.2 (sunos sparc). Research Systems, Inc.

IDL> print,randomu(seed)
0.415999
IDL> print,randomu(seed)
0.0919649
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Insight bug when plotting horizontal lines?
Next Topic: Re: beginners plotting question

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

Current Time: Wed Oct 08 19:26:06 PDT 2025

Total time taken to generate the page: 0.00444 seconds