home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / programm / 2401 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.3 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!pacbell.com!pbhya!dbsuthe
  2. From: dbsuthe@pbhya.PacBell.COM (Daniel B. Suthers)
  3. Newsgroups: comp.programming
  4. Subject: Re: Any simple Random Number generators?
  5. Keywords: random, shift
  6. Message-ID: <1992Aug20.164314.410@pbhya.PacBell.COM>
  7. Date: 20 Aug 92 16:43:14 GMT
  8. References: <13AUG199218224504@judy.uh.edu> <1992Aug14.104121.29374@corax.udac.uu.se> <3283@creatures.cs.vt.edu> <1992Aug18.143439@fdr.jsc.nasa.gov> <1992Aug20.143244.6305@watson.ibm.com>
  9. Reply-To: dbsuthe@PacBell.COM (Daniel B. Suthers)
  10. Organization: Pacific * Bell, San Ramon, CA
  11. Lines: 18
  12.  
  13. In article <1992Aug20.143244.6305@watson.ibm.com> curt@watson.ibm.com (Curt McDowell) writes:
  14. >In article <1992Aug18.143439@fdr.jsc.nasa.gov>, shirley@fdr.jsc.nasa.gov (Bill Shirley [CSC]) writes:
  15. >> 
  16. >> If you just want it to reseed differently
  17. >> 
  18. >> random(time())  
  19. >> 
  20. >> will do it
  21. >> -- 
  22. >No, that won't quite do it.  Firstly, the call is srandom.  Secondly,
  23. >time() requires an argument or it will core dump.  What you wanted to
  24. >say was srandom(time(0)).
  25.  
  26. Hold on Guys, Aren't we supposed to be language independent?  I can imagine
  27. that Bill could be using C or GFA basic. His real message is that most
  28. languages have a built in mechanism.
  29.  
  30. Dan Suthers
  31.