Added betroll bettest, fixed a bug which caused betroll to have very low payout

This commit is contained in:
Kwoth
2022-07-31 21:26:34 +02:00
parent 616f01f8b2
commit 82d89148f3
5 changed files with 9 additions and 21 deletions

View File

@@ -25,20 +25,6 @@ public class NadekoRandom : Random
_rng.GetBytes(bytes);
return Math.Abs(BitConverter.ToInt32(bytes, 0)) % maxValue;
}
public byte Next(byte minValue, byte maxValue)
{
if (minValue > maxValue)
throw new ArgumentOutOfRangeException(nameof(maxValue));
if (minValue == maxValue)
return minValue;
var bytes = new byte[1];
_rng.GetBytes(bytes);
return (byte)((bytes[0] % (maxValue - minValue)) + minValue);
}
public override int Next(int minValue, int maxValue)
{