Skip to main content
Premier SEO Services

Text tools

Random Number Generator

Generate one or many random numbers between any minimum and maximum, as whole numbers or decimals, with or without repeats. Every value in the range has exactly the same chance.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

Random Number Generator

Set the options, then copy or download the result

  • Up to 10,000 numbers per batch.
  • Decimals are drawn on a grid of the chosen precision (2 places = steps of 0.01).

How to use the random number generator

  1. 1Enter the Minimum and Maximum, or press a Quick picks button such as 1 to 100 or Lottery: 6 of 1–49.
  2. 2Set How many numbers and, for fractions, choose Decimal places.
  3. 3Keep No repeats (unique numbers) ticked if no number may appear twice; choose a Sort order if you want the results in order.
  4. 4Press Generate. Copy or download the result; press Generate again for a new draw.

Lottery: 6 of 1–49

Input
Minimum 1 · Maximum 49 · How many numbers 6 · No repeats · Sort: Smallest first
Output
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.

Sources

Questions about the random number generator

How do I get a random number between 1 and 10?

Press 1 to 10 under Quick picks, or type 1 as the minimum and 10 as the maximum and press Generate. Both 1 and 10 can come up.

Can I get numbers without repeats?

Yes. Keep No repeats (unique numbers) ticked. The range must contain at least as many values as you ask for, otherwise a message explains why.

Is it truly random?

It uses your browser's cryptographically secure generator, which is seeded from the operating system's entropy sources and is unpredictable for any practical purpose. It is the same source browsers use for encryption keys.

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem