How random number generation works
This tool uses the browser's built-in random number function to draw values within the range you enter. Every number between the minimum and maximum has exactly the same probability of being drawn, which is what a uniform distribution means.
Worked example
To draw the winning ticket among 1,000 raffle participants, simply use the first calculator with a minimum of 1 and a maximum of 1,000. To draw the 6 numbers of a lottery game between 1 and 60, the second calculator with the "no repeats" option checked makes sure no number repeats in the result.
Random numbers with or without repeats
The difference between generating numbers with repeats and without repeats matters depending on the use case. In a lottery draw or a raffle of names, each number or name should only appear once, so the "no repeats" option is the right choice. In a simulation where each result is independent of the previous one, like repeatedly flipping a coin or rolling a die, the numbers can, and should, repeat naturally.
Rolling virtual dice
Virtual dice are widely used in board games, tabletop RPGs and simulations. Each type of die is identified by its number of sides: a d6 is the traditional six-sided die used in games like Monopoly, while a d20 is the twenty-sided die popular in RPGs like Dungeons & Dragons. The calculator on this page lets you roll any quantity of these dice at once and automatically adds up the total.