2 function stats($f, $a) {
6 foreach($a as $k => $v)
7 print "$k: $v: " . sprintf('%0.3f', $v / $times) . "\n";
11 for ($i = 0; $i < $times; $i++
) {
15 if (empty($a[$s])) $a[$s] = 0;
22 for ($i = 0; $i < $times; $i++
) {
25 if (empty($a[$s])) $a[$s] = 0;
29 stats('str_shuffle', $a);