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

Home » Public Forums » archive » Re: RANDOMU bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: RANDOMU bug? [message #3377] Wed, 18 January 1995 00:37
chris is currently offline  chris
Messages: 22
Registered: October 1994
Junior Member
: >IDL> randu = randomu(seed)
: >IDL> print, randu, seed
: Not random ...

Here is how I get around this:

rnd = randomn(s,10) & rnd = rnd(3)

As was mentioned, just don't chose the 1st element. If you need
many random numbers, use eg rnd = rnd(1:9) Don't call randomu
(or randomn) repeatedly.

-chris
[Message index]
 
Read Message
Previous Topic: RANDOMU bug?
Next Topic: Re: Programming style

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

Current Time: Fri Oct 10 18:02:38 PDT 2025

Total time taken to generate the page: 0.56230 seconds