FIX: randrange doesn't actually consider the end of the range as a valid number

pull/3/head
Kamal Curi 2 years ago
parent 786931ebe8
commit f99ccca22a

@ -5,7 +5,7 @@
█ ▄ █ ▄▄▄█ ▄▄▄█ ▄ ██ █▄▄▄█ ▄▄▄█
█ █ █ █ █▄▄▄█ █▄▄▄█ █▄█ █ █ █▄▄▄
█▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█
Neeble version: 2023.04.04
Neeble version: 2023.04.04a
Bot source can be found by users with
the @Neeble Dev role.
Thank you!

@ -445,4 +445,4 @@ async def dice_roll(bot:object, size:int=6) -> str:
"""
syntax = '--dice_roll <size>'
return await bot.send(f":game_die: : `{str(randrange(1, size))}`")
return await bot.send(f":game_die: : `{str(randrange(1, size + 1))}`")
Loading…
Cancel
Save