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