free ยท instant ยท no sign up

Random Number Generator

Pick a range, generate one number or many at once, with an optional no-repeats mode for unique results.

Your numbers will appear here.

Common ranges, dice, lottery & PINs

Use the presets above for the most common ranges: 1-6 for a dice roll, 1-49 for lottery-style number picks, 1-100 for general use, 1-1000 for larger draws, or a 4-digit PIN range (1000-9999). You can also set any custom min and max yourself.

Generate unique numbers with no repeats

Turn on No repeats to make sure every number in a batch is different, useful for raffle draws, picking multiple unique winners, or lottery number sets. Note that the quantity you request can't be larger than the total numbers available in your range (for example, you can't generate 10 unique numbers from a range of only 5).

Generate random numbers in Excel and Python

Excel random number generator:

=RANDBETWEEN(1,100)

Python random number generator:

import random
random.randint(1, 100)

For quick one-off numbers or bulk generation without writing any code, the tool above is faster than opening Excel or a Python shell.

Frequently Asked Questions

How do I generate a random number in Excel?+

Use the formula =RANDBETWEEN(1,100) to generate a random whole number between 1 and 100. Change the two numbers to set your own range. Press F9 to generate a new random number.

How do I generate a random number in Python?+

Use Python's built-in random module: import random, then random.randint(1, 100) to get a random whole number between 1 and 100, inclusive.

What does "no repeats" mean?+

With no repeats enabled, every number generated in a batch is unique, none will appear twice. This is useful for lottery numbers, raffle draws, or picking unique winners.

Is this a true random number generator?+

This tool uses your browser's built-in pseudorandom number generator, which is suitable for games, decisions, and everyday use. For cryptographic or scientific purposes requiring true randomness, a hardware random number generator is recommended instead.

Can I generate numbers without duplicates for a large range?+

Yes, as long as the quantity you request is not larger than the total numbers available in your chosen range. For example, you can't generate 10 unique numbers from a range of only 5 numbers.

Related Tools