home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0044.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  467 b   |  14 lines

  1. To the person who asked about random number generators and deficiencies
  2. in (random) [I can't write mail to you for some reason]:
  3.  
  4. You're not doing anything wrong; that's the way the sucker works.
  5. One good way to get random numbers is to do the syscall that gets
  6. you the number of seconds since whenever-it-is, and use the mod
  7. function. This is especially good for getting a random one or zero,
  8. by using the evenp function.
  9.  
  10.                     Tim Maroney
  11.                     tim@unc@udel-relay
  12.  
  13.  
  14.