Skip to content

Commit

Permalink
Merge pull request #47 from ILW8/fix-roll
Browse files Browse the repository at this point in the history
fix roll upper bound off-by-one bug
  • Loading branch information
ILW8 authored May 5, 2024
2 parents 7015c7e + 0c595c5 commit 4cc9c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Online/Chat/StandAloneChatDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ private void newCommandHandler(IEnumerable<Message> messages)
}

var rnd = new Random();
long randomNumber = rnd.NextInt64(1, limit);
long randomNumber = rnd.NextInt64(1, limit + 1);
EnqueueBotMessage($@"{message.Sender} rolls {randomNumber}");
}
}
Expand Down

0 comments on commit 4cc9c1c

Please sign in to comment.