v04i110: An amazingly small C-program

The Beach Bum jfh at rpp386.Dallas.TX.US
Thu Oct 6 14:17:49 AEST 1988


I changed the `27' on the bottom line to an `11'.  This reflects rand()'s
return numbers in the range 0 .. 32767.  The comparision of rand() against
6 << 27 never flew ...

I also added a call like srand (getpid ()).  This produced a more random
maze but didn't look as pretty.

- John.
-- 
John F. Haugh II (jfh at rpp386.Dallas.TX.US)                   HASA, "S" Division

      "Why waste negative entropy on comments, when you could use the same
                   entropy to create bugs instead?" -- Steve Elias



More information about the Comp.sources.bugs mailing list