From f8b0bd7e1bdd07dae095b85e0f0cdc27a34ca039 Mon Sep 17 00:00:00 2001 From: Macintosh II <95250141+mctaylors@users.noreply.github.com> Date: Mon, 2 Oct 2023 17:41:00 +0300 Subject: [PATCH] Update src/Commands/ToolsCommandGroup.cs Co-authored-by: Octol1ttle Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com> --- src/Commands/ToolsCommandGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/ToolsCommandGroup.cs b/src/Commands/ToolsCommandGroup.cs index f30cc0d..e17d07a 100644 --- a/src/Commands/ToolsCommandGroup.cs +++ b/src/Commands/ToolsCommandGroup.cs @@ -265,8 +265,8 @@ public class ToolsCommandGroup : CommandGroup private async Task SendRandomNumberAsync(int first, int second, IUser user, CancellationToken ct) { - var max = Math.Max(first, second); var min = Math.Min(first, second); + var max = Math.Max(first, second); var i = Random.Shared.Next(min, max + 1);