Random number generator

Draw one or many random integers inside a range you define. Use it for raffles, classroom picks, game setup, or quick simulations.

How to generate random numbers

1. Set the minimum and maximum of your range (inclusive).
2. Enter how many numbers you want to draw.
3. Turn on “unique” if repeats are not allowed.
4. Click Generate and copy the result if needed.

Example uses

Classroom raffle (1–30, one winner)

Set min 1, max 30, count 1. Each click gives a fair pick for “who presents next” or a prize draw.

Lottery-style picks without repeats

For 6 unique numbers from 1 to 49, set count 6, enable unique, and generate. If the range is too small for the count, the tool shows an error instead of repeating.

Dice substitute for board games

Need a d6? Set min 1, max 6, count 1. For 2d6, set count 2 and read both values (or use the dedicated dice roller for sums).

When to use this tool

• When you need unbiased integer picks within a defined range.
• When you want unique draws for raffles, bingo callers, or sampling.
• When you prefer a local browser tool over a spreadsheet RAND function.

Uniform random integers

Each integer in your range has equal probability when unique is off. That is the standard definition of a fair lottery: no number is favored. When unique is on, the tool samples without replacement — like drawing names from a hat without putting them back.

Frequently asked questions

Are the numbers truly random?

They are pseudo-random, generated in your browser with JavaScript’s Math.random(). That is fine for games and classroom use, but not for security or gambling audits.

What does “unique” do?

Each drawn number appears at most once. You need at least as many integers in the range as the count you request — otherwise generation fails.

Are min and max inclusive?

Yes. Min 1 and max 10 includes both 1 and 10.

Can I generate negative numbers?

Yes. Set a negative minimum, e.g. min −10 and max 10.

Can I copy the result?

Yes. Use the copy button on the result card.