Dice
How a Dice result is derived, step by step. Every step is public and can be reproduced from the seeds.
Derivation
- 01
roll = floor(float(0) × 10,000), giving an integer 0–9,999 displayed as 0.00–99.99.
- 02
Under wins iff roll < chance × 100. Over wins iff roll ≥ 10,000 − chance × 100.
- 03
multiplier = floor(990,000 / chance) / 10,000 with chance in percent. Expected return = chance × multiplier = 99%.
float(k) and the rest of the notation are defined in the byte stream.
Run these steps on a bet of your own, in your browser.
Open the verifierRules that fix the payout
A roll is a number from 0.00 to 99.99, every value equally likely.
Choose a win chance from 2.00% to 98.00% and a side. Rolling under wins when roll < chance. Rolling over wins when roll ≥ 100 − chance.
The multiplier is 99 / chance. At 49.50% it pays 2.0000×; at 2.00% it pays 49.5000×.