$result{$array[$num%@array]}++ while ($num--); [download]
In reply to Re: Seek one liner for distributing an integer by ikegami in thread Seek one liner for distributing an integer by johnnywang