home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18267 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.6 KB  |  31 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: adler@Informatik.TU-Muenchen.DE (Martin Adler)
  4. 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        
  5. Followup-To: + 39145    looking for a REALLY RaNdOM "RANDOM"          [17] Roby Sherman        + 39145    looking for a REALLY RaNdOM "RANDOM"          [17] Roby Sherman        
  6. Originator: adler@hphalle6g.informatik.tu-muenchen.de
  7. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  8. Organization: Technische Universitaet Muenchen, Germany
  9. Date: Wed, 11 Nov 1992 14:48:20 GMT
  10. Message-ID: <1992Nov11.144820.21073@Informatik.TU-Muenchen.DE>
  11. Lines: 18
  12.  
  13.  
  14. Try to set the Systemvariable "Rndseed" with a new value of the Toolbox-Routine 
  15. "Tickcount" before you need the next call of "Random".
  16. The Random-Procedure gives allways the same values because when you start your
  17. program this variable is always set to "1". Therefor you must load it with the
  18. actuel time: This is Tickcount.
  19. Depending on the Programmingsystem you use the the Systemvariable can be
  20. "RndSeed" or
  21. "RandSeed" .....
  22. I don't know whether this is the solution of your problem.
  23. If you want a sample code:
  24. I have a segment in a game, written in PASCAL: I can send you this segment, if
  25. you want
  26.     
  27.         --- GULPI ---
  28.  
  29.  
  30. adler@Informatik.TU-Muenchen.DE                Martin Adler
  31.