Random Integer Generator
RG-06Type a lowest and highest whole number, choose how many you want and press Generate. Tick No repeats for a draw like a lottery pick, or leave it off for independent values.
Runs in your browser. Nothing is uploaded.
Range: lowest and highest on one line (empty means 1 100)
Integers
How to use it
- Type the range on one line, such as 1 49 or -100 100. Empty means 1 to 100.
- Choose How many, up to 1000, and tick No repeats if each number may appear once only.
- Pick the order and what separates the numbers: new line, comma or space.
- Press Generate and copy the result.
Range and size
The lowest and highest number are both included. You can separate them with a space, a comma, a semicolon or the word to, and either may be negative. The arithmetic uses big integers, so ranges up to 60 digits work without rounding, such as 1 to 10 to the power of 30. Each value is drawn with rejection sampling, so no number in the range is favored.
No repeats and ordering
With No repeats on, the page draws different numbers, like pulling numbered balls. If you ask for more numbers than the range holds, it stops with an error instead of repeating. Ranges of 100,000 numbers or fewer are shuffled exactly. Order lets you sort the result smallest or largest first, and Separate with picks new lines, commas or spaces.
What it is good for
Picking raffle numbers, sampling row numbers, creating test data, or choosing a number for a game. It is a plain random draw from your browser's secure source, not a certified lottery or audit tool. Nothing is stored, and each click gives a new list.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Type two whole numbers on one line, such as 1 100 (first the lowest, then the highest). Got: abc | The box does not hold exactly two whole numbers. | Type the lowest and highest whole number. |
The first number (10) is larger than the second (5). Put the lowest first. | The range was typed highest first. | Swap the numbers. |
Questions people ask
How do I generate random numbers between 1 and 100?
Leave the box empty or type 1 100, choose how many you want and press Generate. Both 1 and 100 can appear. Tick No repeats if you do not want the same number twice.
How do I get random numbers with no duplicates?
Tick No repeats before pressing Generate. Every number in the list is different. If the range is too small for the count you asked for, the page tells you how many numbers fit.
Can it generate lottery numbers?
It can make a set of different numbers in a range, for example 6 numbers from 1 to 49 with No repeats and sorted smallest first. It is a random picker, and it cannot improve your chance of winning.
Does it work with very large numbers?
Yes, up to 60 digits per number. The page uses exact big integers, so large ranges are not rounded or shortened the way ordinary floating point numbers would be.
Can I get the numbers on one line?
Yes. Under Separate with choose Comma or Space and the numbers come out on a single line instead of one per line. That is handy for pasting into code or a spreadsheet cell.
How random is it?
Values come from crypto.getRandomValues, the secure random source in browsers, and are chosen with rejection sampling so every number in the range has the same chance.
About this tool
Reads the lowest and highest number from the box (separated by a space, comma, semicolon or the word to), with both ends included. Numbers can be negative and up to 60 digits long: the arithmetic uses big integers, so nothing is rounded. Each value is chosen with rejection sampling on crypto.getRandomValues, so no number in the range is favored. With No repeats, asking for more numbers than fit in the range gives an error. Ranges of 100,000 numbers or fewer are shuffled exactly; wider ranges draw and skip repeats. Nothing is stored or sent.