Off by one on the rolls

This commit is contained in:
Brian Buller 2019-04-08 15:26:21 -05:00
parent b60c9c6c25
commit 8973f4b0d0

View File

@ -58,7 +58,7 @@ func parseParm(p string) (int, int, int) {
func roll(num, sides int) int { func roll(num, sides int) int {
ret := 0 ret := 0
for ; num > 0; num-- { for ; num > 0; num-- {
ret += r.Intn(sides) ret += r.Intn(sides) + 1
} }
return ret return ret
} }