Random Number Generator
Random integers in a range, optionally unique.
1 – 1000
About Random Number Generator
The Random Number Generator produces integers in any range you choose, one or many at a time, with an option to force all values to be unique. Boundary values and random samples are the bread and butter of test inputs — ages, quantities, prices, pagination offsets, seed values.
Uniqueness is the notable extra: generating 20 distinct numbers between 1 and 100 by hand (or with naive code) invites duplicates; the unique option handles it for you.
How to use
- Set the "Min" and "Max" of the range (inclusive).
- Choose "How many" numbers you need.
- Tick unique if no duplicates are allowed, then click "Generate numbers".
- Copy the results from "Generated numbers".
Frequently asked questions
Are the bounds inclusive?
Yes — both Min and Max can themselves be generated. If you need strictly-between values, narrow the range by one on each side.
Why can't I generate 50 unique numbers between 1 and 10?
Uniqueness requires the range to contain at least as many integers as you request. The tool flags this instead of looping forever — widen the range or lower the count.
Can I use these for statistical sampling?
They are fine for test data and exploratory sampling. For rigorous statistical work you want a seeded, documented PRNG so results are reproducible.
