Random Number Generator

Generate random numbers in any range. Set minimum, maximum, count, and whether to allow duplicates.

How to Use This Calculator

Set a minimum and maximum value, choose how many numbers to generate (up to 1,000), and whether to allow duplicates. Press Generate. Click Copy All to copy the results to your clipboard.

Common Uses

Lottery / Raffle pickMin: 1, Max: 1000, Count: 1, No duplicates
Dice roll (6-sided)Min: 1, Max: 6, Count: 1
Random sample of 10Min: 1, Max: 100, Count: 10, No duplicates
Classroom random seatMin: 1, Max: 40, Count: 40, No duplicates

FAQ

This uses JavaScript's Math.random() which is a pseudorandom number generator (PRNG) — it produces statistically uniform distributions but is not cryptographically secure. It is suitable for games, sampling, lotteries, and educational use. For cryptographic or security-sensitive applications, use a hardware random number generator or the Web Crypto API.
The calculator generates all numbers in the range, shuffles them using the Fisher-Yates algorithm (a mathematically proven fair shuffle), then picks the first N numbers. This guarantees uniform distribution without replacement — each number has an equal probability of being selected.
Yes, this is ideal for simple raffle draws — assign each participant a number and generate a random winner. For regulated competitions or prize promotions in Nigeria, the National Lottery Regulatory Commission (NLRC) may require certified random number equipment. This tool is suitable for informal workplace draws, school events, and social media giveaways.

Related Calculators