Xref: utzoo comp.sources.wanted:14614 alt.sources.d:1233 rec.games.misc:12968 rec.games.programmer:2745 Path: utzoo!utgpu!cs.utexas.edu!uunet!munnari.oz.au!uhccux!bigtuna!pegasus!tleylan From: tleylan@pegasus.com (Tom Leylan) Newsgroups: comp.sources.wanted,alt.sources.d,rec.games.misc,rec.games.programmer Subject: Re: Maze generation Message-ID: <1990Dec25.071959.1188@pegasus.com> Date: 25 Dec 90 07:19:59 GMT References: <1990Dec13.190759.9297@craycos.com> <1990Dec15.093542.2725@pegasus.com> Organization: Pegasus, Honolulu Lines: 15 In article pinkas@st860.intel.com (Israel Pinkas) writes: > >Yep, that's the problem. The BSD version of rand() returns a number >between 0 and 2^31-1, whereas the System V and DOS versions return a number >between 0 and 2^15-1. Since the return value is compared against 6<<27, >the test always fails on DOS and SysV machines. > >Change the 27 on the last line to 11 and you should get better results. Many thanks to everyone who pointed me in the direction of the elusive 11 that was, as you all know, the problem. Now to turn this into some sort of dumb little maze game... tom >