Which will remove and return a random element from the array, there by, never picking the same number twice.push @num, splice(@array, int rand @array, 1);
In reply to Re: Select three random numbers between 1..10
by Paladin
in thread Select three random numbers between 1..10
by Perl_User
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |