use warnings; use strict; use List::Util qw(shuffle); my @nums = shuffle(1 .. 10); my $sample = pop @nums; print "sample = $sample\n";
In reply to Re: rand + shift || pop
by toolic
in thread rand + shift || pop
by magnus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |