mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Use RandN properly and get rid of the iterations thingy for next double
This commit is contained in:
@@ -92,14 +92,14 @@ public class Planes : ICommand
|
||||
|
||||
if (HOUSE_EDGE < 1)
|
||||
{
|
||||
if (Money.GetRandomDouble(gambler, 1) > (double)HOUSE_EDGE)
|
||||
if (Money.GetRandomDouble(gambler) > (double)HOUSE_EDGE)
|
||||
{
|
||||
_rigged = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((double)HOUSE_EDGE - Money.GetRandomDouble(gambler, 1) > 1)
|
||||
if ((double)HOUSE_EDGE - Money.GetRandomDouble(gambler) > 1)
|
||||
{
|
||||
_riggedWin = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user