Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 Apollo; site apollo.UUCP Path: utzoo!linus!decvax!wivax!apollo!nazgul From: nazgul@apollo.UUCP (Kee Hinckley) Newsgroups: net.lang.c,net.micro.cpm Subject: Re: Wanted: random number generator written in C Message-ID: <121@apollo.UUCP> Date: Fri, 23-Oct-70 02:30:02 EDT Article-I.D.: apollo.121 Posted: Fri Oct 23 02:30:02 1970 Date-Received: Sun, 9-Oct-83 07:24:04 EDT References: <1289@ecsvax.UUCP> Organization: Apollo Computer, Chelmsford, Mass. Lines: 13 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