mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Fix RandomNext behaviour (#2212)
This commit is contained in:
@@ -208,7 +208,7 @@ namespace ArchiSteamFarm {
|
||||
case < 0:
|
||||
throw new ArgumentOutOfRangeException(nameof(maxValue));
|
||||
case <= 1:
|
||||
return maxValue;
|
||||
return 0;
|
||||
default:
|
||||
lock (Random) {
|
||||
return Random.Next(maxValue);
|
||||
|
||||
Reference in New Issue
Block a user