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 #35038 is a reply to message #35027] Fri, 09 May 2003 07:13 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
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.
[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:12:30 PDT 2025

Total time taken to generate the page: 0.74509 seconds