home *** CD-ROM | disk | FTP | other *** search
Wrap
Newsgroups: comp.sys.mac.programmer Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!adler From: adler@Informatik.TU-Muenchen.DE (Martin Adler) Subject: + 39145 looking for a REALLY RaNdOM "RANDOM" [17] Roby Sherman + 39145 looking for a REALLY RaNdOM "RANDOM" [17] Roby Sherman + 39145 looking for a REALLY RaNdOM "RANDOM" [17] Roby Sherman Followup-To: + 39145 looking for a REALLY RaNdOM "RANDOM" [17] Roby Sherman + 39145 looking for a REALLY RaNdOM "RANDOM" [17] Roby Sherman Originator: adler@hphalle6g.informatik.tu-muenchen.de Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Technische Universitaet Muenchen, Germany Date: Wed, 11 Nov 1992 14:48:20 GMT Message-ID: <1992Nov11.144820.21073@Informatik.TU-Muenchen.DE> Lines: 18 Try to set the Systemvariable "Rndseed" with a new value of the Toolbox-Routine "Tickcount" before you need the next call of "Random". The Random-Procedure gives allways the same values because when you start your program this variable is always set to "1". Therefor you must load it with the actuel time: This is Tickcount. Depending on the Programmingsystem you use the the Systemvariable can be "RndSeed" or "RandSeed" ..... I don't know whether this is the solution of your problem. If you want a sample code: I have a segment in a game, written in PASCAL: I can send you this segment, if you want --- GULPI --- adler@Informatik.TU-Muenchen.DE Martin Adler