Teren wrote:
> Anyways, it works fine if I put 0 in for 1 on line 9 where it
> uses the rand(), but it include 0 and I can't have 0.

Why not just change the following:

>       if($ran == $sh) {
>         $add = "no";
>       }

to:

>       if($ran == $sh || $ran == 0) {
>         $add = "no";
>       }

That way you're testing for $ran to be 0, and if so then you do not add
it.

Cheers,
Pablo

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to