Random Number Generator
Set a minimum and maximum, choose how many numbers you need, and generate. Tick 'no repeats' for raffles and draws.How this random number generator works
Type a minimum and a maximum, tell the tool how many numbers you want, and press generate. Every number is drawn independently from the whole range, so 1 is exactly as likely as 100 when you ask for 1–100. The picks use the browser's cryptographic random source (crypto.getRandomValues) rather than a simple seeded formula, which is the same source used for generating keys and tokens.
Switch on No repeats when each number should appear only once — raffle draws, picking a batch of lottery-style numbers, or assigning unique IDs. Leave it off when repeats are fine, such as simulating dice rolls. Sort results orders the batch from lowest to highest, which makes long lists easier to read.
Common ways people use it
- Raffles and giveaways. Number the entries, set the range to match, tick no repeats and draw as many winners as you have prizes.
- Classroom picks. Give each student a number and let the generator decide who answers next. It is faster than a name list and nobody can argue with it.
- Games without dice. A 1–6 range replaces a die; 1–20 replaces a d20. Generate several at once for multi-dice rolls.
- Test data. Developers use it to produce IDs, quantities and sample values for forms and spreadsheets. For fixed-length numbers, use the 4-digit, 5-digit or 6-digit generators, which always produce the full length.
- Decisions. Assign options to numbers and let the result decide. For yes/no questions the yes or no picker is quicker.
Related number tools
If you need a specific kind of number, these are more direct: a random percentage, a random fraction, random prime numbers, only even or odd numbers, or the digits of pi.
Frequently asked questions
- Is the generator truly random?
It uses the browser's cryptographically secure random source, which is as close to true randomness as software gets. Every number in the range has the same probability, and each pick is independent of the previous one.
- Can I generate negative numbers or very large numbers?
Yes. Enter a negative minimum, such as -50, or a large maximum. The tool works with whole numbers up to JavaScript's safe integer limit (about 9 quadrillion).
- What is the maximum number of results?
Up to 1,000 numbers per click. If you tick no repeats, the count cannot exceed the size of the range.
- Can I use it for lottery numbers?
Yes. Set the range to match your game (for example 1–49 or 1–69), enter how many numbers a ticket needs, tick no repeats and sort results.



