home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14572 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  996 b 

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!reed!bowman
  2. From: bowman@reed.edu (Eric Bowman (bobo))
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Seed for random numbers?
  5. Message-ID: <1992Aug26.213810.13252@reed.edu>
  6. Date: 26 Aug 92 21:38:10 GMT
  7. Article-I.D.: reed.1992Aug26.213810.13252
  8. Organization: Reed College, Portland, OR
  9. Lines: 13
  10.  
  11. I've written a program that used by a class here that has stochastic elements
  12. to it.  I've been using the seconds since 1901 deal to seed my random number
  13. generator; unfortunately, when a class uses it, they get similar seeds and
  14. (sometimes) near identical results on different machines.  Does anyone have
  15. a suggestion for how a unique seed for each machine could be created?  I
  16. don't know AppleTalk yet, but perhaps there is some i.d. associated with
  17. each machine that could be EORed with the seed?
  18.  
  19. Thanks,
  20. bobo
  21. bowman@reed.edu
  22. "No matter how eloquently a dog may bark, he can never tell you that his
  23. parents were poor but honest." -- Bertrand Russell
  24.