range()'s upper bound is not inclusive
This commit is contained in:
parent
0da18aa86d
commit
7ef8437d44
1 changed files with 1 additions and 1 deletions
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in a new issue