range()'s upper bound is not inclusive

This commit is contained in:
jesopo 2018-11-17 12:29:24 +00:00
parent 0da18aa86d
commit 7ef8437d44

View file

@ -18,7 +18,7 @@ class Module(ModuleManager.BaseModule):
count_n = min(5, int(count)) count_n = min(5, int(count))
sides_n = min(20, int(sides)) 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_n = sum(results)
total = "" total = ""