Maze generation

Tom Leylan tleylan at pegasus.com
Tue Dec 25 18:19:59 AEST 1990


In article <PINKAS.90Dec17174817 at st860.intel.com> pinkas at 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
>



More information about the Alt.sources.d mailing list