Random Number Generator
Generate one or more random numbers between a minimum and a maximum, with or without repeats, as whole numbers or decimals.
How to use it
- 01
Enter the lowest and highest numbers you want (both can come up).
- 02
Choose how many numbers you need and, if you want decimals, how many decimal places.
- 03
Uncheck “Allow repeats” if each number should only come up once, like in a raffle or lottery drawing.
- 04
Click “Generate”. You can sort the results and copy them with one click.
How it works
Numbers come from your browser’s cryptographic API (Web Crypto), the same source of randomness used to create encryption keys, not from Math.random, which is predictable.
To give every number exactly the same chance, the tool uses rejection sampling: it throws out random values that would introduce a slight bias, a subtle mistake many generators make.
Without repeats, numbers are drawn like balls from a lottery machine: each number in the range can come up only once. With decimals, every value at that precision (1.0, 1.1, 1.2 and so on) is equally likely.
Examples
- Rolling a die
Set the minimum to 1, the maximum to 6 and the count to 1 to roll a standard six-sided die.
- Lottery numbers
To pick 5 different numbers from 1 to 69, as in Powerball’s white balls, set the count to 5, uncheck repeats and sort lowest to highest.
- Picking a winner
If your entries are numbered 1 to 250, generate a single number to choose the winner.
Frequently asked questions
Are the numbers truly random?
They come from your system’s cryptographic generator, which draws on entropy sources in your device. In practice they’re unpredictable and fine for giveaways, although no official certificate is issued.
Can the minimum and maximum come up?
Yes. The range is inclusive: with a minimum of 1 and a maximum of 10, both 1 and 10 can be drawn.
Can I use negative numbers?
Yes, for example between −100 and 100. You can also use decimal limits, as long as you choose at least that many decimal places.