Random Number Generator
Generate random whole numbers or decimals in any range, in bulk, with an optional unique-only mode and a list of numbers to exclude.
This guide is not yet available in your language and is shown in English.
Tool guide
What this tool does
Random Number Generator draws one or many numbers from any minimum to maximum range you set, as whole integers or with a chosen number of decimal places, using cryptographically strong randomness rather than Math.random. A batch can require every value to be unique, and specific numbers can be excluded from the draw entirely.
A fair random number is harder to produce by hand than it sounds; picking ‘at random’ in your head is well known to skew toward certain digits and away from repeats. Raffles, games, sampling and quick decision-making all benefit from a generator that removes that human bias entirely.
This tool draws from the Web Crypto API rather than the weaker Math.random, so every number has a genuinely even chance across your chosen range. Set a minimum and maximum, optionally allow decimal places for things like random prices or measurements, generate several numbers in one batch, and if needed require every number in that batch to be different or exclude specific values such as ones already used.
How to use Random Number Generator
- Set Min and Max to define the range numbers can fall within.
- Set How many numbers for a single draw or a full batch.
- Set Decimal places to 0 for whole numbers, or higher for decimals.
- Turn on Unique values only if no number should repeat within the batch.
- Optionally list specific numbers under Exclude numbers to remove them from consideration.
- Click Generate, then copy the result or download it as a text file.
Tips for better results
- A whole-number range with Unique values only is limited to the count of integers actually in that range; the tool explains clearly if your batch size is too big for that.
- Decimal places apply uniformly to the whole batch, so set it once to match what you need, such as 2 for currency-style values.
- Excluding numbers is useful for redraws, for example removing a previous raffle winner before drawing again.
- For a single quick decision between two or three options, a small range like 1 to 3 works as a simple decision-maker.
Common use cases
- Running a fair raffle or giveaway draw from a numbered list of entries.
- Picking a random sample of numbered records, rows or test cases for manual review.
- Generating random practice numbers for a maths exercise or probability demonstration.
- Quickly settling a decision between a small number of numbered options.
Common mistakes to avoid
- Requesting more unique whole numbers than actually exist in the chosen range, which is caught with a clear error rather than returning a short, silently incomplete batch.
- Forgetting that excluded numbers shrink the available range, which can make a previously fine unique-only request suddenly too large.
- Assuming Math.random-based tools elsewhere give the same quality of randomness as this crypto-backed generator; the practical difference rarely matters for games, but it does for anything security-sensitive.
Frequently asked questions
Does this use real cryptographic randomness?
Yes. Numbers are drawn using the Web Crypto API’s getRandomValues, the same source browsers use for cryptographic operations, rather than the weaker Math.random.
Can I generate decimals instead of whole numbers?
Yes, set Decimal places above 0 and every generated value will have that many digits after the decimal point, still drawn uniformly across your min-max range.
What happens with Unique values only and a very narrow range?
If your requested batch size is larger than the number of distinct whole numbers available in the range, the tool reports exactly how many are available instead of silently generating fewer.
Is there a limit on batch size?
Up to 10,000 numbers per batch, which comfortably covers sampling and raffle use while keeping the page responsive.
Feedback & suggestions
Help us improve Random Number Generator. We read every message.