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 250 and 4999 inclusive to win. For tails, you need a number between 5000 and 9749 inclusive to win. If you get a number less than 250 or greater than 9749, the house wins.
BALANCE 1000.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!