Quick access

Add to my tools

Random 4 Digit Number Generator

Get a random four-digit number from 1000 to 9999. Need leading zeros, such as 0427? Set the minimum to 0 and pad the result to four digits.

Press Generate, or press Enter.

Recent draws

Random number between 1 and…

Need a quick decision instead? Flip a coin, roll dice or spin the wheel.

About the Random Number Generator

Pick random numbers between any minimum and maximum. Draw one number or up to 10,000 at once, choose whether numbers may repeat, sort the results, or add up to six decimal places. The lottery mode draws quick-pick lines for common lottery formats. Numbers come from your browser’s secure random number generator with no bias, and nothing is sent to our server.

How to use it

  1. 1 Enter the lowest and highest number.
  2. 2 Choose how many numbers you want and whether they may repeat.
  3. 3 Press Generate, or press Enter.
  4. 4 Copy the numbers, or generate again.

Frequently asked questions

How many 4 digit numbers are there?

There are 9,000 numbers from 1000 to 9999, so each has a 1 in 9,000 chance. Counting codes with leading zeros (0000–9999) there are 10,000.

Can I use this for a PIN?

You can, but avoid weak patterns such as 1234, 0000 or a birth year if one comes up. A truly random PIN is much harder to guess than a chosen one.

Is this random number generator truly random?

It uses crypto.getRandomValues, a cryptographically secure generator built into your browser, with rejection sampling so no number is more likely than another. That is as random as you need for games, draws and sampling.

How do I pick numbers without repeats?

Keep “No repeats” ticked. The numbers are then drawn like balls from a bag, so each can come up only once. You can draw up to the size of the range.

Can it pick decimal numbers?

Yes. Set the decimal places from 1 to 6. With 2 decimal places, a range of 0 to 1 can give 0.00, 0.01 and so on up to 1.00, each equally likely.

Can I use it for a raffle or giveaway?

Yes. Number the entries from 1 to the total, then generate as many winners as you need with no repeats. Record your screen if you want to show the draw.

Are my numbers saved?

Your last 10 draws are kept in your browser only, so you can look back at them. Nothing is sent to our server.