Random Number Generator: Pick Numbers in a Range

Use this random number generator to pick numbers in any range. Set the minimum and maximum, choose how many, allow or block repeats and sort the results. Use it for classroom picks, games, samples and fair choices.

Random Number Generator

Count Generated

-

Sum / Average

-

Numbers

-

How to use the Random Number Generator

  1. Enter the minimum and maximum values. They are included in the range.
  2. Choose how many numbers you want (1–1,000), whole numbers or decimals, and whether repeats are allowed.
  3. Press Generate. Press again for a new set.

Formula

Integer = ⌊ random × (max − min + 1) ⌋ + min
Decimal = min + random × (max − min), rounded to the chosen places
No repeats: shuffle the whole range (Fisher–Yates) and take the first k values

"random" is a uniformly distributed number from 0 up to (but not including) 1. Every integer in the range is equally likely.

Example

Raffle with tickets 1–250 and 3 winners: set min 1, max 250, count 3, no repeats. You get 3 different ticket numbers, for example 17, 203, 88. Each ticket had the same 3-in-250 chance.

Frequently asked questions

Are the numbers truly random?

They are pseudo-random numbers from your browser's built-in generator. That is fine for games, classroom picks, raffles among friends and sampling. Don't use it for cryptography, security codes or official draws.

How do I generate numbers without repeats?

Set "Unique" (no repeats) to Yes. The tool shuffles the whole range and returns the first values, so no number appears twice. You can't ask for more unique integers than the range contains.

Can I generate random decimals?

Yes. Choose decimal output and the number of decimal places. With no repeats on, decimal requests are limited to 500 values.

Is the minimum and maximum included?

For whole numbers, yes: both endpoints can be drawn. For example, 1 to 6 works like a die.

See also: all free tools.

Pick random numbers

How to use it

  1. Set the min and max.
  2. Choose how many.
  3. Allow or block repeats.
  4. Generate.

More questions

Is it truly random?

It uses your browser's secure random generator, so results are unpredictable.

Can I avoid repeats?

Yes. Turn off repeats so each number shows up only once.

Can I pick names?

Yes. To pick names, use the wheel spinner.

Related tools: Wheel Spinner, Random Team Generator, Probability Calculator.