From 7ef8437d440a8873ee1d20c003ad94ac8a054495 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 17 Nov 2018 12:29:24 +0000 Subject: range()'s upper bound is not inclusive --- modules/dice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 = "" -- cgit v1.3.1-10-gc9f91