diff options
| author | 2018-11-17 12:29:24 +0000 | |
|---|---|---|
| committer | 2018-11-17 12:29:24 +0000 | |
| commit | 7ef8437d440a8873ee1d20c003ad94ac8a054495 (patch) | |
| tree | 82ffcbc035d85855c37ee11cf3c982a25b23d6d4 | |
| parent | now i see why it was %s not %d (diff) | |
| signature | ||
range()'s upper bound is not inclusive
| -rw-r--r-- | modules/dice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dice.py b/modules/dice.py index 6eed276e..1eb11d51 100644 --- a/modules/dice.py +++ b/modules/dice.py @@ -18,7 +18,7 @@ class Module(ModuleManager.BaseModule): count_n = min(5, int(count)) sides_n = min(20, int(sides)) - results = random.choices(range(1, sides_n), k=count_n) + results = random.choices(range(1, sides_n+1), k=count_n) total_n = sum(results) total = "" |
