Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use .roll instead of deprecated version of .pick(:replace)
  • Loading branch information
bacek committed Feb 21, 2011
1 parent c15faa0 commit fb1820a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice.pl
Expand Up @@ -2,7 +2,7 @@
my @count = 0 xx 20;

for ^$chars-to-roll {
my @a = (^6).map({ [+] (1..6).pick(4, :replace).sort(-*)[^3] }).sort(-*);
my @a = (^6).map({ [+] (1..6).roll(4).sort(-*)[^3] }).sort(-*);
for @a { @count[$_]++ };
# say ~@a;
}
Expand Down

0 comments on commit fb1820a

Please sign in to comment.