|< 1 2 >| | 13 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
my $num_of_rounds = 5;
while($num_of_rounds--)
{
my %nums = ();
for (0..24)
{
my $n = 0;
while(1)
{
$n = int(rand(25));
last unless exists $nums{$n};
}
$nums{$n} = 1;
print "$n\t";
}
print "\n";
}
1 2 3
use List::Util qw/shuffle/; print join " ", shuffle(0 .. 24), "\n" for 0 .. 9;
|< 1 2 >| | 13 Einträge, 2 Seiten |