Update: I f'd it up with rand and put a 53 where a 54 should be. Thanks to ikegami for catching that.my @numbers; $numbers[ int(rand(54)) + 1 ]++ for 1 .. 10_000; print join ', ', ( map { "$_ ".($numbers[$_]||'0') } reverse sort { $n +umbers[ $a ] <=> $numbers[ $b ] } (1 .. 54) )[0..5];
In reply to Re: Messing Around
by phaylon
in thread Messing Around
by Perl12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |