Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!zephyr.ens.tek.com!tektronix!reed!reeder From: reeder@reed.UUCP (Doug Reeder) Newsgroups: comp.sys.apple2 Subject: The signifigance of the seeds in Accrete Message-ID: <15802@reed.UUCP> Date: 16 Dec 90 21:04:30 GMT Reply-To: reeder@reed.UUCP (Doug Reeder) Organization: Tether Propulsion Division, Institute of Knowledge, Jinx Lines: 34 The seed numbers that Accrete uses are the seeds to the improved pseudo-random number generator in Kyan Pascal's "System Utilities" toolkit. As such, they have no direct relationship to size of star or other parameters. I added the seeding to the program to enable the recreation of systems, and thereby the exchange of the seeds of system of interest. (I encourage you to post the seeds of any particularly interesting systems you find to this newsgroup/mailing list. They may be incomprehensible to many, but take up trivial amounts of bandwidth.) However, I also wished to implement seeding in a way that every time one ran the program, one could get a different system. The four default seeds are therefore: 1) The ProDOS date word, interpreted as an integer 2) The ProDOS time word, interpreted as an integer 3) GetLn's random number. 4) The contents of the zero page location A1 ($3C) GetLn's random number seems to be different every time, whereas variability of date and time depend on having a clock or setting the time. A1 turned out not to be variable, meaning that the program initialization code uses it. This algorithm is therefore fairly succesful. Does anyone know of a better way to generate seeds, guarranteed to be different each time, on any Apple II, independant of the use of GetLn, and which does not require the program to keep track of the last seed? Doug Reeder USENET: ...!tektronix!reed!reeder from ARPA: tektronix!reed!reeder@berkeley.EDU BITNET: reeder@reed.BITNET Romulan: Prepare to be destroyed, Enterprise! Troi: I sense hostility, captain. -- Doug Reeder USENET: ...!tektronix!reed!reeder from ARPA: tektronix!reed!reeder@berkeley.EDU BITNET: reeder@reed.BITNET Romulan: Prepare to be destroyed, Enterprise! Troi: I sense hostility, captain.