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

Home » Public Forums » archive » Re: IDL random number generator
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: IDL random number generator [message #35022 is a reply to message #35019] Mon, 12 May 2003 02:29 Go to previous messageGo to previous message
krijger is currently offline  krijger
Messages: 5
Registered: May 2003
Junior Member
James Kuyper <kuyper@saicmodis.com> wrote in message news:<3EBBB786.9C52F5F3@saicmodis.com>...
> krijger@astro.uu.nl wrote:
>>
>> Hi,
>> I know that randomn is pseudo-random, how many numbers can you
>> generate before the non-randomness kicks in?
>>
>> Thijs Krijger
>
> None. The non-randomness is there from the very beginning. You could
> make a true random number generator by running it off of the radioactive
> decay of atoms, or some similar hardware-based approach. However,
> software random number generators are absolutely deterministic, once
> you've set up the seed. You can set the seed form a clock setting, which
> means that the precise sequence of random numbers generated depends upon
> the precise time at which the program reads the clock. But even the very
> first number can be absolutely predicted from the seed value.
>
> Every random number generator has a period, after which it starts
> repeating the same exact sequence. How long that period is depends upon
> the quality of the algorithm used. Commonly used algorithms have periods
> in the range of 100,000 numbers or better. Very sophisticated generators
> can have periods that are so long that your computer will become
> obsolete before the sequence repeats.

So, if in IDL I use the data=randomn(seed,N), then how big can N be
(and I can make the claim that the numbers are still random (compared
to each other))?

Thijs Krijger
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Updated Display
Next Topic: Re: Default interactive integer type

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

Current Time: Thu Oct 09 20:34:47 PDT 2025

Total time taken to generate the page: 0.88028 seconds