diff options
Diffstat (limited to 'src/dice.js')
-rw-r--r-- | src/dice.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dice.js b/src/dice.js index 5edc892..1587eef 100644 --- a/src/dice.js +++ b/src/dice.js @@ -5,7 +5,7 @@ const pool = (die) => { } const roll = (die) => { - return pool(die).reduce((a, b) => (a + b)) + return pool(die).reduce((a, b) => (a + b), 0) } const d = (number, sides) => { |