The second numbers of each pair must be the numbers 0 through 99 in random order. Code this directly.
use List::Util qw( shuffle ); my $n = 0; my @pairs = map { [$n++, $_] } shuffle( 0..99 );
Update: Sorry guys, I misread the spec.
In reply to Re: random pairs
by BillKSmith
in thread random pairs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |