# Print 10 random numbers between 0 and 100, without duplicates. my %seen; for (1 .. 10) { redo if $seen {my $r = int rand 100} ++; print "$r\n"; }
In reply to Re: Useful uses of redo?
by Anonymous Monk
in thread Useful uses of redo?
by kvale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |