This will move a random number from @arr into $num, which may or may not be what you want. It will also shuffle the contents of @arr, so caveat emptor.use List::Util 'shuffle'; @arr = shuffle(@arr); my $num = shift @arr;
In reply to Re: Randomly picking numbers
by trammell
in thread Randomly picking numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |