From 8902a4d49a4b8f47ca581bef35083d32e0b01a98 Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Mon, 9 Oct 2023 16:48:59 -0300 Subject: [PATCH] FIX: drumspins execute randrange() many times to flush BPs and other RNG-restrictive algorithms --- utils/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/commands.py b/utils/commands.py index dd75c7f..68bb55a 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -585,7 +585,8 @@ async def roulette(bot:object, *option:str) -> str: if not drum: await bot.send("Inserting a bullet and spinning the drum...") drum.extend(['click']*6) - spin = randrange(0, 6) + for i in range(0, 10): + spin = randrange(0, 6) drum[spin] = 'bang' chamber+=1