Skip to content

Commit

Permalink
Nicer formatting of output
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 16, 2022
1 parent 5c4acc1 commit 5fd8e88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Lotto.pm
Expand Up @@ -53,7 +53,8 @@ sub play {
while (keys %tries < $set->{count}) {
$tries{(int rand $set->{limit}) + 1}++;
}
push @nums, [ sort { $a <=> $b} keys %tries ];
push @nums, [ map { $_ = sprintf '%02d', $_ }
sort { $a <=> $b} keys %tries ];
}

push @results, \@nums;
Expand Down

0 comments on commit 5fd8e88

Please sign in to comment.