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 #35027 is a reply to message #35026] Sat, 10 May 2003 15:17 Go to previous messageGo to previous message
tandp is currently offline  tandp
Messages: 8
Registered: November 2000
Junior Member
In article <3EBBB786.9C52F5F3@saicmodis.com>, James Kuyper
<kuyper@saicmodis.com> wrote:

> 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
^
| and the seed

> 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

The best pseudorandom number generator (congruence method and seed chosen
to be the largest prime ineteger representable in a word) will have a
period equal to the seed value.

> 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: Sat Oct 11 00:14:26 PDT 2025

Total time taken to generate the page: 2.00099 seconds