Your problem is here:
my $xda = int rand (0 .. $total);
rand only takes a single parameter, so you're selecting a random number from 0 to 0 currently. This is probably what you intended:
my $xda = int rand $total;
-Miller
In reply to Re: While issues
by wind
in thread While issues
by Dandello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |