Skip to content
Free everyday tool

Random number generator

This random number generator draws numbers between a minimum and maximum you choose. It can make whole numbers or decimals, allow or block repeats, and sort the results. It is useful for raffles, games, classroom picks and sample selection.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

1 to 1,000
Allow repeats
Number type
For decimals, 1 to 10
Order

Result

Your numbers70, 38, 16, 15, 19, 85
Range
1 to 100
Type
Whole numbers
Repeats
Not allowed

Every value in the range is equally likely. Numbers come from crypto.getRandomValues.

The short answer

The tool picks each number using your browser's secure random generator, so every value between the minimum and maximum has the same chance. With repeats off, a number cannot appear twice, and the count cannot be larger than the number of values in the range.

FormulaNumber = minimum + a random whole number from 0 to (maximum - minimum). Values that would cause uneven odds are discarded and redrawn

Worked exampleWith the default settings it draws 6 different whole numbers from 1 to 100 using crypto.getRandomValues, and the numbers change on every run, so no fixed result is shown.

Example

Input
Minimum
1
Maximum
100
How many
6
Allow repeats
No
Number type
Whole numbers
Decimal places
2
Order
As drawn
Result
Your numbers70, 38, 16, 15, 19, 85
Range
1 to 100
Type
Whole numbers
Repeats
Not allowed

Every value in the range is equally likely. Numbers come from crypto.getRandomValues.

How to use the random number generator

  1. Enter the Minimum, Maximum and How many numbers you want.
  2. Set Allow repeats and choose a Number type. For decimals, set Decimal places.
  3. Pick an Order.
  4. A new draw appears as you change the fields. Press Run to draw again, then use Copy result or Download.

How it works

Numbers come from crypto.getRandomValues with rejection sampling, so every value in the range is equally likely.

Decimals are drawn evenly from the values that have the chosen number of places, such as 0.00, 0.01 up to 1.00.

With repeats off, each value appears at most once, and you cannot ask for more numbers than the range holds.

You can draw 1 to 1,000 numbers, and limits stay within plus or minus 1,000,000,000,000,000. The minimum and maximum are both included.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

Is this random number generator truly random?

It uses your browser's cryptographic random source, the same kind used for security keys. Results cannot be predicted from earlier draws.

Can I pick lottery numbers without repeats?

Yes. Set the range, set How many, and choose No for Allow repeats.

Are the minimum and maximum included?

Yes. A range of 1 to 10 can return both 1 and 10.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools