Random annoyance

Shari gypsyware at earthlink.net
Fri May 9 22:43:01 EDT 2003


What a good idea!  Thanks!  I didn't expect anyone to have a solution :-)



>If you don't want to use a "slew" of if/then statements, you could simply
>replace the random function with a single custom random function that checks
>the terrData value:
>
>
>add round((myRandom(item 17 of terrData)) * multiplier) to \
>    item 56 of line x of gStats
>
>function myRandom N
>     if N = 0 then
>         return 0
>     else return random(N)
>end myRandom
>
>
>Regards,
>
>Scott Rossi

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com



More information about the metacard mailing list