Why most dice rollers are slightly loaded
A computer's random numbers come out as values from 0 to 255 — 256 possibilities. The usual shortcut is to divide by six and take the remainder as the face. But 256 does not divide evenly by six: there are 42 complete runs of one to six, plus four values left over, and those four would land on faces one to four. So one to four would come up very slightly more often than five and six.
This roller throws those few leftover values away and draws again, so every face has exactly the same chance. Most of the time nothing is thrown away; now and then one draw is repeated. How often depends on the die:
- d4 — never, because 256 divides evenly
- d6 — about 1.6 draws in every 100 are redrawn
- d8 — never, because 256 divides evenly
- d10 — about 2.3 draws in every 100 are redrawn
- d12 — about 1.6 draws in every 100 are redrawn
- d20 — about 6.3 draws in every 100 are redrawn
- d100 — about 22 draws in every 100 are redrawn
Where the randomness comes from
Your browser's cryptographic random source, the same one used to make encryption keys, rather than the ordinary random function, which makes no promise about how predictable it is. Nothing is sent anywhere — the rolling happens in your browser and this site never sees the result.
More in general calculators
- Date difference: Days between two dates, and the working days among them.
- Age: Years, months and days, with the month borrow done properly.
- Day of the week: What day a date falls on, and where it sits in the year.
- Hours and time card: Hours worked, including the shifts that run past midnight.
- Weight converter: Including the troy ounce, which is not the ordinary one.
- Time zone converter: Says so when the hour does not exist, or happens twice.
- Password generator: Made in your browser, with the strength figure told straight.
Or jump to power and wiring, electronics and components, networking, video and storage and cable, conduit and site. Every calculator is on one page, with a search box.
