How to use the random number generator
- 1Enter the Minimum and Maximum, or press a Quick picks button such as 1 to 100 or Lottery: 6 of 1–49.
- 2Set How many numbers and, for fractions, choose Decimal places.
- 3Keep No repeats (unique numbers) ticked if no number may appear twice; choose a Sort order if you want the results in order.
- 4Press Generate. Copy or download the result; press Generate again for a new draw.
Lottery: 6 of 1–49
Minimum 1 · Maximum 49 · How many numbers 6 · No repeats · Sort: Smallest first
2 26 27 29 44 49
One real draw. Every draw is random, so yours will differ; each set of six numbers was equally likely.
Range and quantity
Both ends of the range are included: a range of 1 to 10 can return 1 and 10. If you type the maximum below the minimum, the two are swapped. Negative numbers work (−50 to 50). A single number is shown large; for several, choose how to Separate with: new lines for a spreadsheet column, commas for a list, or tabs for pasting across a row. Up to 10,000 numbers can be drawn at once.
Unique numbers (no repeats)
With No repeats ticked, the generator draws without replacement, like taking balls out of a lottery drum: once a number is drawn it can't come up again in the same batch. That needs at least as many possible values as numbers requested; asking for 6 unique numbers between 1 and 5 shows an error instead of a short list. Untick it to draw with replacement, like rolling a die several times, where repeats are expected: with 23 draws from 1 to 365, the chance of at least one repeat is just over 50% (the birthday problem).
Decimals and precision
Decimal places sets the precision. With 2 places, a range of 0 to 1 has 101 possible values (0.00, 0.01 … 1.00) and each has the same chance. Results always show the chosen number of places, so 0.5 appears as 0.50, which keeps a column aligned. Unique decimals are unique at that precision.
How the randomness is generated
Numbers come from crypto.getRandomValues, the cryptographically secure random number generator built into your browser, not from Math.random. To turn random bits into a number in your range without bias, the tool uses rejection sampling: it discards the few raw values that would make some numbers slightly more likely than others (the modulo bias). Unique numbers are drawn with a partial Fisher–Yates shuffle. Nothing is sent to a server, and a draw can't be predicted or replayed.
Uses: raffles, sampling, games
- Raffles and giveaways: number the entries and draw the winning ticket numbers, or paste names into the random line picker.
- Sampling: pick 20 unique row numbers between 2 and 501 to audit a spreadsheet.
- Games and teaching: roll dice (1–6, or 1–20 for a d20), pick a page number, or make maths drills.
- Test data: fill a column with random amounts using 2 decimal places.
For a sequence such as 1 to 100 in order rather than random, use the number list generator.
Is anything I enter stored?
This tool runs entirely in your browser. Your text is not uploaded to our servers.
