Random number generator

Generate random whole numbers between any minimum and maximum, one or thousands at a time, optionally without duplicates and sorted. Uses your browser's cryptographically secure random generator.

  • 100% free
  • No signup
  • Runs in your browser

Overview

How to use

  1. Enter the smallest and the largest number that may be drawn. Both limits are included.
  2. Enter how many numbers you need (up to 10,000).
  3. Tick "No duplicates" if every number may appear only once, for example for a raffle or a lottery draw, and "Sort from smallest to largest" for an ordered list.
  4. Click Generate. Click it again for a new draw, and copy the numbers from the result box.

How the numbers are generated

The generator uses crypto.getRandomValues, the cryptographically secure random source built into your browser, and discards values that would make some numbers more likely than others. Every number in the range therefore has exactly the same chance.

Everything runs on your device: the numbers are not sent to a server and are not stored anywhere.

Popular settings

Use Range and count
Roll a die 1 – 6, × 1
Flip a coin (1 = heads, 2 = tails) 1 – 2, × 1
Pick a winner from 250 entries 1 – 250, × 1
Lottery 6 of 49 (no duplicates) 1 – 49, × 6
Random 4-digit PIN 0 – 9, × 4

Examples

Example Result
One number from 1 to 10 For example 7. Each number has a 10% chance.
6 numbers from 1 to 49, no duplicates, sorted For example 3, 11, 24, 29, 38, 46
5 numbers from -10 to 10 For example -4, 9, 0, -10, 9. Repeats are possible.
Tips: Keep counts reasonable for smooth performance in the browser.

FAQ

Yes. Both the minimum and maximum may appear in the results.

The tool prefers your browser's cryptographic random number generator when available.

Tick "No duplicates". Each number can then appear only once, so you cannot ask for more numbers than the range contains: at most 10 numbers from 1 to 10, for example.

Yes. The minimum and maximum can be any whole numbers, including negative ones, for example -50 to 50.

Number the entries from 1 to N, generate one number between 1 and N, and the entry with that number wins. Take a screenshot of the result if you need proof.

No. The numbers are generated in your browser and disappear when you leave or reload the page.

Need another tool?

Explore all 61 free tools: calculators, converters, date and time tools, random generators and text utilities.

Browse all tools