1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

Update src/Commands/ToolsCommandGroup.cs

Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com>
Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
Macintxsh 2023-10-02 17:41:00 +03:00 committed by GitHub
parent 87f334054b
commit f8b0bd7e1b
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,8 +265,8 @@ public class ToolsCommandGroup : CommandGroup
private async Task<Result> SendRandomNumberAsync(int first, int second, IUser user, CancellationToken ct) private async Task<Result> SendRandomNumberAsync(int first, int second, IUser user, CancellationToken ct)
{ {
var max = Math.Max(first, second);
var min = Math.Min(first, second); var min = Math.Min(first, second);
var max = Math.Max(first, second);
var i = Random.Shared.Next(min, max + 1); var i = Random.Shared.Next(min, max + 1);