home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apple2 / 23718 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  918 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!hamblin.math.byu.edu!yvax.byu.edu!cunyvm!psuvm!kcr103
  2. Newsgroups: comp.sys.apple2
  3. Subject: Random Number Generation
  4. Message-ID: <92315.141227KCR103@psuvm.psu.edu>
  5. From: <KCR103@psuvm.psu.edu>
  6. Date: Tue, 10 Nov 1992 14:12:27 EST
  7. Organization: Penn State University
  8. Lines: 11
  9.  
  10. I am working on Dawn of Time for the GS and want to know the best (fastest) way
  11. to generate random numbers.  I was actually thinking of generating a table of
  12. 32000 random numbers for the program to use over and over.  Only the starting
  13. point would need to be randomized then and a counter incremented for each numbe
  14. r (random) required by the program.  Is there significant enough overhead in
  15. generating random numbers that such a random number table would be warranted or
  16. worthwhile.
  17.  
  18. Thanks for any ideas,
  19.  
  20. Ken
  21.