Math & Everyday

Random Number Generator

Set a minimum, maximum, and how many numbers you want, then generate. Choose no-repeats mode for drawings and raffles where each number can only be picked once.

Quick answer: A random number generator picks values with equal probability across your range — every number from min to max has the same chance. Browser generators are pseudorandom: statistically uniform and fine for picks and games, but not for cryptography.

Your number

Press Generate

Uses the browser's pseudorandom generator (Math.random) — perfectly fine for picks, games, and raffles among friends, but not suitable for cryptography or real lotteries. With “No repeats” each number in the range can appear at most once.

Embed this calculator

Free to embed on your site. Paste the whole snippet — the iframe plus the one-line credit.

How it works

  1. 1. Set your range and count

    Choose the minimum and maximum (inclusive on both ends) and how many numbers to generate — one for a quick pick, or a list for assigning teams, sampling, or games.

  2. 2. Choose repeats or not

    With repeats allowed, every draw is independent, like rolling dice. No-repeats mode draws without replacement, like pulling raffle tickets — so the count can't exceed how many numbers are in the range.

  3. 3. Generate on demand

    Each press of Generate produces a fresh, uniformly distributed result. The summary shows the count, sum, and average — handy for checking dice totals or splitting costs randomly.

Frequently asked questions

  • Is this truly random?

    It's pseudorandom — the browser's generator produces statistically uniform results that are unpredictable in practice, which is exactly right for picks, games, and raffles. For cryptographic keys or regulated lotteries, use hardware or certified randomness instead.

  • Can the same number come up twice?

    In normal mode, yes — each draw is independent, so repeats are possible just like rolling the same number on dice. Switch to no-repeats mode to draw without replacement, where each value can appear only once.

  • Are the endpoints included?

    Yes — the range is inclusive. Generating between 1 and 100 can return 1, 100, or anything in between, with each of the 100 values equally likely.