Another Perl take, pretty idiomatic; seems to be a fair bit faster.
@ten = ( 0 .. 9 ); $count{$ten[rand@ten]}++ for 1..10_000_000; print "$_ -> $count{$_}\n" for @ten;
In reply to Re: Camel vs. Gopher
by Your Mother
in thread Camel vs. Gopher
by reisinge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |