17. Can I do a dice throwing test?
Yes you can, with this page. Please note that a 15 point game will take about 100 rolls.
Random classes and supposed quality:
- Java Random - 'Poor quality'
- Mersenne Twister - 'Good quality'
- XOR Random - 'Medium quality'
- Numerical Recipes - 'Good quality'
- Java Secure Random - 'High quality' (current)
Dice generation types:
- int(36) => 1 random sample split into 2 dice
- int(6) + int(6) => 2 random samples of 6, 1 for each die (current)
- int % 6 + int % 6 => 2 32-bit samples capped at 6
- int(64) < 36 => power of 2 sample: random 2^5 (smaller then 36)
- int() >> 26 < 36 => top 5 bits of a 32 bit sample (smaller then 36)
- int(3)*bool + int(3)*bool => Smallest random sample possible (top 2 bits)
The blue bars on the background display the 'expected' perfect distribution (Bell curve). The red bars show the actual numbers of rolls for each number. The 'Rolls: x%' indicate how much the actual dice match the bell curve.
Rolling will start slow with 1 roll each time, after a while it starts rolling a number of rolls at once. You can pause the simulation or start a new one.