Re: Why to call it pseudorandom?

From: Peter Webb (webbfamily_at_DIESPAMDIEoptusnet.com.au)
Date: 08/28/04


Date: Sat, 28 Aug 2004 23:39:06 +1000


"David C. Ullrich" <ullrich@math.okstate.edu> wrote in message
news:hl11j09t9o6cd9tvc9a6o32se65hhlofkq@4ax.com...
> On 28 Aug 2004 05:55:20 -0700, luiroto@yahoo.com (Luis A. Rodriguez)
> wrote:
>
> >If an algorithm produces a infinte sequence of digits that never
> >falls into a loop and passes the most stringent statistical tests
> >about its uniformity, why to call it pseudorandom?
>
> maybe because the digits are not random? if they're produced by
> an algorithm then they're not unpredictable.
>
> >If genius discover a system of equations for the roulette, the
> >old "random" experiments made with roulettes will appear at daybreak
> >as pseudorandom?
>
>
> ************************
>
> David C. Ullrich
>
> sorry about the inelegant formatting - typing
> one-handed for a few weeks...

And at a practical level, all computer rand() generators loop. They take a
seed n and calculate f(n), then f(f(n)) etc.
So they loop over whatever range n can take (at most). If n is a 32 bit
integer - and it often is - it will loop over 4 billion numbers, probably
enough to generate enough mineseweeper boards and bridge hands to keep most
people happy.
Many rand() functions are however random according to all other statistical
criteria.



Relevant Pages

  • Re: singleton vs static
    ... it broadcasts the digits to Martians... ... this might be an algorithm that returns n ... All you need is sufficient analysis to be able ... test involving one time through the loop is sufficient to conclude that the ...
    (comp.object)
  • Re: calculating only the most significant half of a multiplication
    ... "Recall that the multiplication for the quotient on step 3 must only ... digits at or above the m-1'th position. ... An algorithm called ... write to it and break out of the loop. ...
    (sci.crypt)
  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... and Richard made it clear that he understands the order ... >> of evaluation of a for loop. ... > using strlen but using an Oalgorithm when there is a trivial O ... >> In most other languages the terminating ...
    (comp.programming)
  • Re: Efficiency questions: combined ifs and looping 4 times
    ... Choice of algorithm always has a far bigger impact in performance than ... Use sizeof before the loop, store the result in a var and use ... speaks well of PHP. ... your order of complexity analysis is off. ...
    (comp.lang.php)
  • Re: count of each word occurred
    ... > take each word in order and compare it with the rest of the list ... Another version of this algorithm takes advantage of the fact that it does ... loop over all words in the list ... a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq ...
    (alt.comp.lang.learn.c-cpp)