<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 23 Oct 1983 23:30:02-PDT (Fri)
From   : decvax!wivax!apollo!nazgul@ucb-vax
Subject: Re: Wanted: random number generator written in C

    Although it is probably not relevant in this case, I might
mention how the Apple ][ generates it's random number seed for
Applesoft Basic (although it is extensible to the Aztec C that
I use).  Quite simply, everytime it checks to see if a character
has been typed at the keyboard (which is everytime it prints a
character, or is waiting for input) it increments a counter.  That
counter then can be used as a reasonably random seed for any random
number generator that the user creates.

                                        -kee
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>