Random Number Generator
Set the range and how many values you need. The tool uses the browser's cryptographic random source and handles zero bounds and rounding explicitly.
How to Use
- Set Minimum and Maximum. A maximum of 0 stays 0; it is not replaced with a default. If the minimum is larger, the two are swapped.
- Set How many (1–1000) and Decimals (0 to 3 places).
- Tick Unique values if repeats are not wanted. Uniqueness is applied after rounding to the chosen precision.
- Generate, then copy or download the comma-separated result. Reset restores the defaults.
Practical Examples
- A raffle with 100 tickets: Minimum 1, Maximum 100, How many 1, Decimals 0.
- Five unique winners from 30 entries: set How many to 5 and tick Unique values.
- Five decimal values between 0 and 1 at 2 places: Minimum 0, Maximum 1, Decimals 2.
Understanding the Result
Integer draws use unbiased rejection sampling over the inclusive range, so a 32-bit Web Crypto value is accepted only when it falls in a whole multiple of the range size. Decimal draws scale a random value into the range and round to your chosen precision.
With Unique values enabled, a draw is kept only if its rounded string has not appeared before. This means uniqueness works for decimals as well, and the result line says that it applies after rounding.
The output is a plain comma-separated list. Nothing is sorted or labelled for you.
Limitations and Useful Notes
- If you ask for more unique integers than the range contains, the tool reports the problem instead of quietly returning fewer.
- Results are independent draws, so repeats occur unless Unique is enabled. A random draw is not a shuffle of the whole range.
- At most 1000 values are produced per click. There is no seed or history, so a previous set cannot be reproduced — copy or download it.
- Decimals are rounded after scaling, which makes the endpoints slightly less likely than the interior. This is fine for sampling but not for regulated lotteries.
- This is a convenience tool, not a certified source for cryptographic keys or regulated sampling.
Common Questions
Are duplicate values allowed?
By default yes. Tick Unique values to exclude repeats after rounding, which is useful for drawing distinct winners.
Why did setting Maximum to 0 not give me 100?
A literal 0 is a valid bound and is no longer treated as a blank field. Leave the field empty if you want the fallback of 100.
Can I reproduce the same numbers later?
No. There is no seed or history and nothing is stored. Copy or download the results before leaving the page.