in reply to random pairs
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: random pairs
by CountZero (Bishop) on Jul 13, 2012 at 20:31 UTC | |
|
Re^2: random pairs
by Perlbotics (Archbishop) on Jul 13, 2012 at 20:26 UTC |