From a03ea4bba679ccfb43ec3bed73bb33d702d1e907 Mon Sep 17 00:00:00 2001 From: rkh00 <33283775+rkh00@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:48:47 +0200 Subject: [PATCH] Fixed math in coinflip() --- src/cogs/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/misc.py b/src/cogs/misc.py index 4f11ec0..c43587c 100644 --- a/src/cogs/misc.py +++ b/src/cogs/misc.py @@ -324,9 +324,9 @@ class Misc(commands.Cog): """ random_result = random.randint(1, 100) # We use 1 and not 0 to avoid a tie - if random_result >= 50: # And by including 50 we avoid that tie + if random_result > 50: # And by including 50 we avoid that tie outcome = "Kron" - elif random_result < 50: + elif random_result <= 50: outcome = "Mynt" await interaction.response.send_message(outcome)