Wanted: random number generator written in C
Kee Hinckley
nazgul at apollo.UUCP
Fri Oct 23 16:30:02 AEST 1970
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
More information about the Comp.lang.c
mailing list