home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!pacbell.com!pbhya!dbsuthe
- From: dbsuthe@pbhya.PacBell.COM (Daniel B. Suthers)
- Newsgroups: comp.programming
- Subject: Re: Any simple Random Number generators?
- Keywords: random, shift
- Message-ID: <1992Aug20.164314.410@pbhya.PacBell.COM>
- Date: 20 Aug 92 16:43:14 GMT
- 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>
- Reply-To: dbsuthe@PacBell.COM (Daniel B. Suthers)
- Organization: Pacific * Bell, San Ramon, CA
- Lines: 18
-
- In article <1992Aug20.143244.6305@watson.ibm.com> curt@watson.ibm.com (Curt McDowell) writes:
- >In article <1992Aug18.143439@fdr.jsc.nasa.gov>, shirley@fdr.jsc.nasa.gov (Bill Shirley [CSC]) writes:
- >>
- >> If you just want it to reseed differently
- >>
- >> random(time())
- >>
- >> will do it
- >> --
- >No, that won't quite do it. Firstly, the call is srandom. Secondly,
- >time() requires an argument or it will core dump. What you wanted to
- >say was srandom(time(0)).
-
- Hold on Guys, Aren't we supposed to be language independent? I can imagine
- that Bill could be using C or GFA basic. His real message is that most
- languages have a built in mechanism.
-
- Dan Suthers
-