Home ↓
CalculatorsVerified

Math & Geometry

Random Number Generator

Draw random whole numbers in a range, with or without repeats.

Fair random draws

The generator picks whole numbers uniformly at random between a minimum and a maximum, inclusive. You can draw one number or many, and choose whether numbers may repeat. Without repeats it behaves like drawing numbered balls from a bag — useful for raffles, picking winners, assigning people to groups or choosing questions for a quiz. With repeats allowed it behaves like rolling dice, which suits simulations and games.

Numbers come from the browser's cryptographically secure generator (crypto.getRandomValues) when available, which is much less predictable than the ordinary Math.random function.

Transparency for draws

For public giveaways, announce the range and the method in advance, number the entries, and record or screenshot the draw. Regulated lotteries and gambling require certified equipment and procedures; this tool is meant for informal use, teaching and everyday decisions.

Formula & method

Uses the browser’s cryptographic generator (crypto.getRandomValues) when available

Worked example

Pick 3 different winners from 50 entries

  1. Set minimum 1 and maximum 50
  2. Set how many to 3 and choose No repeats
  3. Draw

Answer: Three distinct numbers between 1 and 50, each entry with an equal chance.

Frequently asked questions

Is it truly random?

It uses a cryptographically secure source in modern browsers; suitable for draws, not for regulated lotteries.

Is every number equally likely?

Yes. Each whole number in the range has the same probability.

Can I simulate dice?

Yes — use 1 to 6 with repeats allowed and draw as many rolls as you need.

Why do I get a different result each time?

Every change to the inputs triggers a new draw; that is expected.

Can I generate decimals?

Not yet. Draw whole numbers and divide, for example by 100 for two decimals.

Is it suitable for passwords?

Use a password manager instead; it generates random characters, not just numbers.

What is the maximum number of draws?

Up to 1,000 numbers at a time.

Can I include negative numbers?

Yes. Set a negative minimum.

Can I use it to split people into teams?

Yes. Number the participants, draw all of them without repeats, and assign the drawn order to teams in turn, for example first half to team A and second half to team B.