home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2909 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!uaisun4!mrl
  3. From: mrl@uai.com (Mark R. Ludwig)
  4. Subject: Re: Is there a good Integer Random number generator in FORTRAN??
  5. In-Reply-To: pviswana@uceng.UC.EDU's message of 30 Jul 92 19:24:01 GMT
  6. Message-ID: <MRL.92Jul31115936@sun4.uai.com>
  7. Sender: mrl@uai.com (Mark R. Ludwig)
  8. Organization: Universal Analytics, Inc., Torrance (LA), CA
  9. References: <1992Jul22.005308.4392@coe.montana.edu> <1992Jul30.192401.10394@uceng.UC.EDU>
  10. Distribution: usa
  11. Date: 31 Jul 92 11:59:36
  12. Lines: 19
  13.  
  14. In article <1992Jul30.192401.10394@uceng.UC.EDU> pviswana@uceng.UC.EDU (Prashanth V.) writes:
  15.  
  16.            I am looking for a good Integer random number generator that
  17.    does not make use of any of the systems libraries. Can anyone please lead
  18.    me to one.
  19.  
  20. Find a library, colleague or classmate with back-issues of the
  21. Communications of the ACM (usually abbreviated CACM).  The October,
  22. 1988 issue has a substantial discussion of an algorithm with good
  23. randomness characteristics, and presented several different
  24. implementations of it for different hardware platforms.  It does _not_
  25. use the time-honored but computationally-horrible "controlled integer
  26. overflow" technique.  Despite being geared toward real numbers in the
  27. range (0,1) (or is it [0,1]?), it really uses integers internally and
  28. I think you should be able to adapt it to your liking.$$
  29. -- 
  30. INET: mrl@uai.com      BANG: uunet!uaisun4!mrl      ICBM: USA; Lower Left Coast
  31.   "You can get a crowd to clap at a phone number, if the inflection is right."
  32.    -- Dave Ross
  33.