Obtain a HMAC-SHA512 hash by hashing the first string ($string1) with the key second string ($string2).
Take the first 5 characters of the hexdecimal hash, and convert them to decimal.
Apply a modulus of 10000 to the resulting number.
Your roll number is obtained, and it cannot be more than 9999. If it's more, use the next 5 characters from the decimal hash.
For heads, you need a number between 499 and 4750 inclusive to win. For tails, you need a number between 4751 and 9500 inclusive to win. If you get a number less than 499 or greater than 9500, the house wins.
BALANCE 100.0000 mBTC
You are playing as a test user. Once you are ready to wager some real Bitcoins, register and start betting to test your luck.
You have selected heads.
Guess heads or tails to win 100% instantly!