How to Generate Random Numbers (Fair Draws & Ranges)

Dice for random number games
Photo: β€œDice Game” by Skitter Photo Β· CC0 1.0 Β· via Openverse (stocksnap)

Short answer

Pick a minimum and maximum, decide whether repeats are allowed, then draw. For giveaways, a list picker is safer than asking people to β€œpick a number” in chat.

Classroom samples, raffles and testers all need unpredictable numbers. Use the random number generator (including no-repeats mode).

Inclusive ranges

To draw from 1 to 100 inclusive, set min 1 and max 100. Clarify inclusivity when you publish rules.

No repeats

Sampling without replacement avoids drawing the same ticket twice β€” ideal for door prizes.

Names instead of numbers

For contests, paste names into the random picker β€” see how to pick a random winner. Tabletop games can use the dice roller.

Fairness tips

See also: how to calculate percentage of a number.

See also: mean median mode explained.

See also: a levels exam guide.

More worked numbers

Change one input at a time so you build intuition. Write the formula, substitute values, then confirm with the free random number generator. If the tool disagrees with your hand math, check units first (months vs years, percent vs decimal, inclusive ranges).

Common mistakes to avoid

How to practise

Invent three mini-problems from your own life β€” a bill, a grade, a trip, a loan quote β€” and solve them on paper before you open the calculator. Teaching the steps to someone else is one of the fastest ways to lock in the method.

After you finish this guide, explore the linked tools above and the related articles for neighbouring skills. Our calculators run privately in your browser with no sign-up, so you can check homework, budgets or work estimates without uploading data.

Quick reference card

Keep the short answer box at the top of this page as your cheat sheet. When a search result brought you here for a specific phrase, that box is designed to match the query with the formula first, then the examples below fill in the judgement calls.

Frequently asked questions

How do I generate a random number in a range?

Choose min and max and use a generator β€” ours runs in your browser. Double-check units and confirm with the linked tool on this page before you rely on the figure for money or school decisions.

Can I prevent duplicates?

Yes β€” enable no-repeats when drawing multiple numbers. Double-check units and confirm with the linked tool on this page before you rely on the figure for money or school decisions.

Is browser randomness β€œtrue” random?

It is suitable for raffles and games; cryptography needs specialised APIs. Double-check units and confirm with the linked tool on this page before you rely on the figure for money or school decisions.

Should I use chat comments to pick winners?

A dedicated random picker from a cleaned list is fairer. Double-check units and confirm with the linked tool on this page before you rely on the figure for money or school decisions.