Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!bloom-beacon!think!ames!amdahl!pacbell!ditka!rpp386!jfh From: jfh@rpp386.Dallas.TX.US (The Beach Bum) Newsgroups: comp.sources.bugs Subject: Re: v04i110: An amazingly small C-program Summary: Patch #1 to mazemaze.c ;-) Message-ID: <7605@rpp386.Dallas.TX.US> Date: 6 Oct 88 04:17:49 GMT References: <7656@boring.cwi.nl> <2456@mhres.mh.nl> <21617.1988Oct3.14:18:27@hammer.me.toronto.edu> Reply-To: jfh@rpp386.Dallas.TX.US (The Beach Bum) Organization: River Parishes Programming, Dallas TX Lines: 13 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@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