Random Number Generator

Generate random numbers within any range, with or without duplicates.

Frequently Asked Questions

Are these random numbers truly random?

This generator uses JavaScript's Math.random(), which produces pseudorandom numbers using a deterministic algorithm seeded by system entropy. They are statistically random and suitable for games, decisions, simulations, and lottery selections — but not for cryptographic security (use crypto.getRandomValues() for that).

How do I generate lottery numbers?

Set minimum and maximum to match your lottery range, set count to the number of balls drawn, and enable "no duplicates." For a 6/49 lottery: min 1, max 49, count 6, no duplicates. For Powerball: generate 5 numbers from 1–69 without duplicates, then 1 number from 1–26 separately.

Can I use this to make fair decisions in a group?

Yes — assign numbers to people or options (e.g. person 1 = 1, person 2 = 2, etc.), then generate a random number in that range. Because Math.random() has no memory or bias, each option has an equal probability of being selected each time.

What is the difference between sampling with and without replacement?

"Without duplicates" is sampling without replacement — once a number is picked it cannot appear again. "Allow duplicates" is sampling with replacement — the same number can appear multiple times. Lotteries always use no duplicates. Dice rolls and coin flips always allow repetition.