my @num; my @array = 1 .. 10; for (1..3) { push @num, splice(@array, rand(@array), 1); }
In reply to Re: Select three random numbers between 1..10
by iburrell
in thread Select three random numbers between 1..10
by Perl_User
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |