Fun

Dice roller

Pick a die from d4 to d20, choose how many to roll, and see each face plus the total, drawn with the browser's own random source.

Runs locally in your browser

How it works

Every die is a separate random draw from one to the number of sides, so a roll of several dice is several independent results rather than one number split up. The draw uses 32 random bits per die, discards values above the largest exact multiple of the side count, and then takes the remainder, which keeps every face equally likely. Faces are added one to the offset so a d6 gives 1 to 6, never 0. The values are shown in the order they were drawn, and the total is their plain sum with no modifier applied. Between one and ten dice can be rolled at once; the limit keeps the row of results readable on a phone.

Worked example

Rolling two six-sided dice and getting 5 and 3 gives each 5, 3, a total of 5 + 3 = 8, and the summary line 2 × d6. Each face of a d6 has a 1 in 6 chance, so the expected value of one die is 3.5 and the expected total of two dice is 7.

Questions and answers

Everything runs in your browser: your text, file or value is never uploaded anywhere.