I hereby claim:
- I am saymv on github.
- I am saym (https://keybase.io/saym) on keybase.
- I have a public key ASDcP4uiva43OIMTXxizlTVXEUU1MinAkKcsBEv53vdb6go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function simulateRouletteBetOnBlack(fund, min, leaveAmount) { | |
var lossStreak = roundCount = 0, | |
bet, | |
spin; | |
while(fund - min * Math.pow(2, lossStreak) > 0 && fund < leaveAmount) { | |
bet = min * Math.pow(2, lossStreak); | |
fund -= bet; | |
spin = Math.floor((Math.random() * 38)); | |
if(spin < 18) { |
var ordinalNumberDisplay = function (number) { | |
var suffixes = ["th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"]; | |
switch (number % 100) { | |
case 11: | |
case 12: | |
case 13: | |
return number + "th"; | |
default: | |
return number + suffixes[number % 10]; | |
} |