home *** CD-ROM | disk | FTP | other *** search
- 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
- From: jonathan@CAD.UCLA.EDU (Jonathan Katz)
- Newsgroups: alt.sources.patches
- Subject: soc.culture.jewish
- Message-ID: <8980@lee.SEAS.UCLA.EDU>
- Date: 23 Dec 92 06:25:32 GMT
- Sender: news@SEAS.UCLA.EDU
- Organization: U.C.L.A. Computer Aided Design Laboratory
- Lines: 28
-
- In article <8970@lee.SEAS.UCLA.EDU> you write:
- >Not that I mind only seeing Christmas posts, but, here is a Chanukah
- >post. No, I dont feel that Chanukah is a major holiday (it isnt), but
- >playing dreidle can be fun, hence this program....
- >
- >Remember to link it with curses....
-
- (or termlib or termcap btw)
-
- OOPS! I forgot that some UNIX rand() implementations are a little
- dain bramaged (SUN is known to be sad..) and this can lead
- to rather dull games of dreidle. I dont feel like posting a full
- patch as our AIX and HP/UX machines are fine.
-
- IF you really are compelled to play dreidle.c on your SUN
- try the following:
-
- replace
- rand()%4
- with (rand()>>4)%4
-
- OR use a better rand function (drand48 perhaps?).
-
- --
- qp HumanNet: Jonathan Katz | Computer Aided Design Laboratory qp
- db AT&T-Net: (310)-825-7821 |_________ ---(*)--- db
- qp Internet: jonathan@kanga.cad.ucla.edu |______Do you read rec.humor? qp
- db SnailNet: 38-138 Engineering IV, UCLA, LA, Ca, 90024| No, frayed knot... db
-