🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.sources.patches
1 messages
1 total messages Started by Jonathan Katz Wed, 23 Dec 1992 06:25
soc.culture.jewish
#25
Author: Jonathan Katz
Date: Wed, 23 Dec 1992 06:25
28 lines
1589 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads