Skip to content
ToutUtils

Generators

Random number generator

Draws 1 to 1,000 random numbers between a minimum and a maximum, as integers or decimals, with or without duplicates.

How to use this tool

Enter a minimum and a maximum, how many values you want (up to 1,000) and the type, then press Draw. Results are listed one per line and Copy takes the whole list. In integer mode both bounds can come out: 1 to 6 behaves like a die. In decimal mode the values have up to six decimal places. Tick Unique values to draw integers without repeats, as in a raffle where a ticket cannot win twice; the option has no effect on decimals. If you ask for more unique integers than the range holds, the tool says so and draws nothing. A minimum larger than the maximum is accepted: the two are swapped. Each number comes from crypto.getRandomValues, the cryptographic generator of the browser, with 32 bits of randomness, so a range wider than about 4.29 billion integers cannot produce every value.

Concrete examples

  • Minimum 1, maximum 6, 1 integer → a die roll: each face has 1 chance in 6
  • Minimum 1, maximum 49, 6 unique integers → six different numbers, as on a 6/49 lottery ticket
  • Minimum 0, maximum 1, decimal → a value such as 0.482915
  • Minimum 1, maximum 30, 30 unique integers → the numbers 1 to 30 in random order
  • Minimum 1, maximum 5, 10 unique integers → refused: the range holds only 5 integers

Frequently asked questions

Are the numbers really random?
They come from crypto.getRandomValues, the generator browsers provide for cryptography, which is fed by the operating system. Unlike a basic pseudo-random function, its output cannot be predicted from earlier draws. That is more than a raffle or a board game needs.
Are the minimum and the maximum included?
For integers, yes: with 1 and 100, both 1 and 100 can be drawn, each with the same 1 in 100 chance. If you type decimal bounds in integer mode, only the whole numbers between them are drawn, so 1.5 to 6.5 gives 2 to 6. In decimal mode the maximum itself is never reached.
What does Unique values do?
It draws without replacement: once an integer has come out, it cannot come out again in the same draw. Use it to pick several winners or to shuffle a numbered list. The range has to hold at least as many integers as the quantity asked for. With decimals the box is ignored.
Can I use it to pick a winner?
Yes. Number the entries from 1 to N, set the minimum to 1 and the maximum to N, and draw one integer. For several prizes, raise the quantity and tick Unique values. The tool keeps no record of a draw, so take a screenshot if you need to show the result afterwards.

Related tools