home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / sources / patches / 49 next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.5 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!stanford.edu!rutgers!ucla-cs!ucla-se!CAD.UCLA.EDU!jonathan
  2. From: jonathan@CAD.UCLA.EDU (Jonathan Katz)
  3. Newsgroups: alt.sources.patches
  4. Subject: soc.culture.jewish
  5. Message-ID: <8980@lee.SEAS.UCLA.EDU>
  6. Date: 23 Dec 92 06:25:32 GMT
  7. Sender: news@SEAS.UCLA.EDU
  8. Organization: U.C.L.A. Computer Aided Design Laboratory
  9. Lines: 28
  10.  
  11. In article <8970@lee.SEAS.UCLA.EDU> you write:
  12. >Not that I mind only seeing Christmas posts, but, here is a Chanukah
  13. >post.  No, I dont feel that Chanukah is a major holiday (it isnt), but
  14. >playing dreidle can be fun, hence this program....
  15. >
  16. >Remember to link it with curses....
  17.  
  18. (or termlib or termcap btw)
  19.  
  20. OOPS!  I forgot that some UNIX rand() implementations are a little
  21. dain bramaged (SUN is known to be sad..)  and this can lead
  22. to rather dull games of dreidle.  I dont feel like posting a full
  23. patch as our AIX and HP/UX machines are fine.  
  24.  
  25. IF you really are compelled to play dreidle.c on your SUN 
  26. try the following:
  27.  
  28.      replace  
  29.                rand()%4  
  30.           with (rand()>>4)%4
  31.  
  32.      OR use a better rand function (drand48 perhaps?).
  33.  
  34. -- 
  35. qp HumanNet: Jonathan Katz          |   Computer Aided Design Laboratory     qp
  36. db AT&T-Net: (310)-825-7821         |_________     ---(*)---                 db
  37. qp Internet: jonathan@kanga.cad.ucla.edu      |______Do you read rec.humor?  qp
  38. db SnailNet: 38-138 Engineering IV, UCLA, LA, Ca, 90024|  No, frayed knot... db
  39.