home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apple2 / 23772 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!gatech!gsusgi1.gsu.edu!gsusgi1.gsu.edu!musjndx
  3. From: musjndx@gsusgi2.gsu.edu (Jonathan N. Deitch)
  4. Subject: Re: Random Number Generation
  5. Message-ID: <musjndx.721542159@gsusgi1.gsu.edu>
  6. Organization: Georgia State University
  7. References: <92315.141227KCR103@psuvm.psu.edu>
  8. Date: Thu, 12 Nov 1992 04:22:39 GMT
  9. Lines: 30
  10.  
  11. <KCR103@psuvm.psu.edu> writes:
  12.  
  13. >I am working on Dawn of Time for the GS and want to know the best (fastest) way
  14. >to generate random numbers.  I was actually thinking of generating a table of
  15. >32000 random numbers for the program to use over and over.  Only the starting
  16. >point would need to be randomized then and a counter incremented for each numbe
  17. >r (random) required by the program.  Is there significant enough overhead in
  18. >generating random numbers that such a random number table would be warranted or
  19. >worthwhile.
  20.  
  21. Although its not applicable in this situation, I've found a simple way to
  22. generate random numbers on an older // (I don't know if it works on a GS).
  23.  
  24. Simply turn on a 5.25 drive, read one byte, and turn it off.  There's no way
  25. to predict what you'll get.  Even with a disk in the drive.
  26.  
  27. - Jonathan
  28.  
  29. -- 
  30.          ** Atlanta Braves - Back to Back NL Champs '91 and '92 **
  31.  
  32.  Internet: jdeitch@gisatl.fidonet.org   Fidonet: Jonathan Deitch@1:133/411.7
  33.            musjndx@gsusgi2.gsu.edu      Bellnet: 1 - (404) - 261 - 3665           
  34. -----------------------------------------------------------------------------
  35. Atlanta 1996 !! | Play Pinball !! | Don't Panic ! | "I hate it when I can't
  36. --------------------------------------------------| trust my own technology!"
  37. "Thrills!  Chills!  Magic!  Prizes!" -- Hurricane |    -- Geordi LaForge
  38.  
  39. Gene Roddenberry, Isaac Asimov, Jim Henson, Dr. Seuss, Mel Blanc ... Sigh ...
  40.  
  41.