VI SOLVES MAZE (update)

Brandon S. Allbery KB8JRR allbery at NCoast.ORG
Mon Jan 21 12:47:49 AEST 1991


As quoted from <1991Jan15.152101.2935 at mdivax1.uucp> by :
+---------------
| also, let's make the change between 27 and 11 (or whatever) automatic.
| 
|     |6<<8*sizeof(int)-5<rand()||!C&!Z?J[M[E]=M[A]]=E,J[M[A]=A-Z]=A,"_.":" |"];}
+---------------

It's not conditional on sizeof (int), it's conditional on the number of bits
returned by rand().  On my SVR3.1 at work, we have 32-bit ints, but rand()
only returns 15 random bits.

++Brandon
-- 
Me: Brandon S. Allbery			    VHF/UHF: KB8JRR on 220, 2m, 440
Internet: allbery at NCoast.ORG		    Packet: KB8JRR @ WA8BXN
America OnLine: KB8JRR			    AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery    Delphi: ALLBERY



More information about the Alt.sources mailing list