Random Number Generator
Numbers, ranges and dice rolls.
Runs entirely in your browser. Nothing you enter or upload leaves your device.
What the random number generator does
This tool picks numbers at random from a range you set. You can draw a single number, a list of up to 10,000, numbers with up to four decimal places, or a set with no repeats. A separate panel rolls up to six dice.
People use it to pick a raffle ticket, choose a sample from a numbered list, split a class into groups, decide who goes first, or stand in for lost dice during a board game. It is also handy for making test data.
How to use the random number generator
- Enter a minimum and maximum, and how many numbers you need.
- Choose whole numbers or up to four decimal places. Tick No repeats for a draw where each number appears once, and Sort results for an ordered list.
- Press Generate, or press Enter in one of the number boxes. Lists can be copied or downloaded as a text file.
- For games, use the dice panel: choose 1 to 6 dice with 4, 6, 8, 10, 12, 20 or 100 sides, then press Roll.
Understanding the results
A single number is shown in large type. When you ask for more, the first three appear at the top and the full list fills the results box, separated by commas for short lists and one per line for lists longer than 20. The dice panel shows each die and the total.
With decimal places, the range is split into equal steps. From 1 to 2 with two decimal places there are 101 possible values, from 1.00 to 2.00. If you ask for more numbers without repeats than the range holds, the tool tells you how many different values exist.
Questions
Is it truly random?
It uses your browser’s cryptographically secure random generator with rejection sampling, so every value in the range is equally likely. The dice use the same generator. For huge ranges with more than about 4.3 billion possible values, it falls back to the browser’s standard Math.random, which is fine for games but not for security.
Are the minimum and maximum included?
Yes, both ends of the range can be drawn. If a limit has more decimal places than you chose, the range starts or ends at the nearest value inside it.
Can I use negative numbers?
Yes. The minimum and maximum can be negative, for example −50 to 50.
Can I use it for a prize draw?
Yes, but for anything with legal requirements, record how the draw was run and who witnessed it.
Are my results saved?
No. Each set is made on the spot and disappears when you leave the page, so copy or download anything you need to keep.