Random Number Generator 1-30
Generate a random integer from 1 to 30, with both ends included.
This page returns integers from 1 to 30 — each number has a 3.33% chance. The range is fixed so you can generate again without re-entering the bounds.
Typical use: picking a day within a month, a thirty-item list, or a 1-in-30 draw. If you need a different range, the fields above are editable; the URL stays on this page and nothing is submitted anywhere.
How to use it
- Press generate — the range is already set to 1-30.
- Turn on no-repeats if you are drawing several winners from the same set.
- Copy the result, or keep generating; each result is independent.
Why the range stops at 30
Thirty is the shortest month, so this range never produces an invalid day. With 30 possible values, the chance of any specific number coming up is each number has a 3.33% chance.
Generating with a narrow range is not the same as generating a wide range and rejecting out-of-range values. Filtering like that biases the result towards whatever is left; this tool draws directly from the range you set, using rejection sampling on the raw random bits.
Reviewed 2026-10-21. This tool runs entirely in your browser — no server, no account, and nothing you generate is stored.
Frequently asked questions
Why 30 and not 31?
So the result is valid for every month, including February in a non-leap year. If you need any calendar date, the random date generator handles month lengths properly.
Is 1 or 30 more likely than the middle values?
No. Each of the 30 values has an identical probability. If you generate a few hundred results, the counts should converge towards equal — small samples always look lumpy.
Can I generate more than one number at once?
Yes. Set the count above; leave no-repeats off if duplicates are acceptable, turn it on if you are drawing distinct winners.
Related tools
More from Random numbers.