Random Number Generator
Generate a random integer in a selected range.
Press Generate number
Generate a random integer in a selected range.
Press Generate number
Enter a minimum and a maximum, press Generate number, and the tool returns one random whole number in that range, both ends included. It starts with 1 and 100, so you can use it immediately for quick decisions, games and classroom draws. Press the button again for a new number, and use Copy result to move the value elsewhere.
The number comes from the browser's cryptographic random generator, mapped onto your range with a method that gives every value an equal chance. If you enter decimals, the minimum is rounded up and the maximum rounded down so the result is always an integer inside your bounds. If the minimum is greater than the maximum, or a box is empty, the result area explains what to fix. Ranges up to about 4.29 billion values are supported.
Number the entries in a raffle or giveaway from 1 to the total, generate one number, and announce the matching entry.
Set the minimum to 1 and the maximum to 6 for a die, or 20 for a twenty-sided one, and press the button for each roll in a board game.
Assign row numbers in a spreadsheet and draw numbers to pick which records to check by hand, repeating until you have enough.
Give each option a number, generate one, and let the result settle a tie such as who goes first or which restaurant to try.
The number is generated in your browser and is not sent anywhere. Nothing is stored, and your range is forgotten when you close the page.
It comes from your browser's cryptographic random number generator, and the code avoids the slight bias that a simple remainder step can introduce, so every value in the range is equally likely. It is suitable for games, raffles and everyday choices.
Yes. With a minimum of 1 and a maximum of 6, any of 1, 2, 3, 4, 5 or 6 can appear. This matches how dice and numbered raffle tickets work.
No. Only whole numbers are produced. If you type decimals, the minimum is rounded up and the maximum is rounded down, so the result stays inside the range you entered.
Not in one step. Press the button repeatedly and discard duplicates yourself. For large unique draws, shuffle a numbered list in a spreadsheet instead.
The span between the minimum and the maximum can be up to about 4.29 billion values. A larger span shows a message asking you to narrow it. Very large numbers beyond the safe integer limit of your browser may not be exact.