To pick a random number, enter an inclusive integer range, choose between 1 and 1,000 results, and decide whether duplicate values are allowed. The Random Number Generator produces the list in the current browser, and it does not send your bounds or results to Lizely.
The key decision is the duplicate rule because it determines whether an earlier value can appear again. The generator checks the inclusive range before it starts, so a request for more unique values than the range contains ends with a clear error rather than a silently shortened list.

Generate a random number from your range
- Enter the minimum safe integer. This is the smallest value allowed in the draw. It must be a whole number within JavaScript’s safe-integer range.
- Enter the maximum safe integer. This is the largest eligible value, and both the minimum and maximum can appear in the result. Negative bounds and ranges crossing zero are supported. If the minimum equals the maximum, that single value is returned.
- Choose the result count and duplicate preference. Request between 1 and 1,000 results. Enable duplicates for independent draws, or disable them when each integer may be selected only once. A duplicate-free count cannot exceed the number of integers in the inclusive range.
- Select Generate numbers. The browser samples the requested range and displays the results as comma-separated integers.
- Review or copy the output. Select the comma-separated list and copy it when needed. Changing a bound, count, or duplicate preference clears the previous list, so select Generate numbers again after making an adjustment.
Match the repeat setting to the task
A repeat occurs when the same integer appears more than once in the generated list. With duplicates enabled, every draw is independent, so a value that appeared earlier remains eligible in a later draw. Disable duplicates when a number must be used only once.
| Task | Settings | Expected result |
|---|---|---|
| One random choice | Set the count to 1; either duplicate setting produces the same single-result behavior. | One integer is selected from the inclusive range. |
| Repeated simulation or independent sample | Choose the required count and enable duplicates. | The same number may recur because each draw is independent. |
| Selecting distinct positions, identifiers, or numbered participants | Choose the required count and disable duplicates. | No selected integer appears more than once. |
| Ordering every value in a small range | Set the count equal to the number of integers and disable duplicates. | Every integer appears once in a unique randomized ordering. |
Duplicate-free requests are checked against the inclusive range before generation. If the requested count exceeds the number of eligible integers, the tool reports that the request is impossible instead of quietly returning fewer numbers. For repeated experiments, leave duplicates enabled and generate a new list whenever you need a fresh independent sample.
Set bounds that represent the exact eligible set
An inclusive range contains every integer between the two bounds, including both endpoints. That definition makes the range easy to state precisely: a minimum of 1 and a maximum of 10 would make every integer from 1 through 10 eligible. Negative minimums and maximums work in the same way, and a range can cross zero.
JavaScript’s safe-integer limit matters for larger ranges. Inputs are limited to safe integers because larger numeric text cannot always be represented exactly in the browser. The inclusive range size must also be an exactly representable safe integer.
| Input or request | Generator behavior |
|---|---|
| Minimum equals maximum | Accepted; the only eligible value is returned. |
| Negative bounds or a range crossing zero | Accepted when the bounds and inclusive range size satisfy the safe-integer rules. |
| Blank field, decimal value, or infinity | Rejected. |
| Minimum above the maximum | Rejected as a reversed range. |
| A bound outside the safe-integer range | Rejected because the browser may not represent it exactly. |
| Inclusive range size that is not an exactly representable safe integer | Rejected rather than presenting a rounded range as exact. |
| Result count from 1 through 1,000 | Supported. |
| More unique results than the range contains | A clear impossible-request error is displayed. |
These restrictions prevent accidental memory-heavy requests and make invalid boundaries visible. If you need arbitrary-precision values wider than the safe-integer range, use a specialist system that accepts integer strings instead of ordinary browser numbers.
Keep the range mapping fair
Randomness comes from the browser’s Web Crypto interface rather than Math.random. The W3C Web Cryptography API defines the Crypto.getRandomValues method, while MDN’s Crypto.getRandomValues documentation explains its browser-facing behavior.
The browser combines Web Crypto 32-bit words into an exactly representable 53-bit nonnegative integer. A simple remainder operation can leave an incomplete group of raw values, which would give some output integers more possible raw values than others. This generator uses rejection sampling instead: it discards values from the incomplete tail and draws again before mapping an accepted value into the inclusive range. Each integer receives the same number of possible accepted raw values.
When duplicates are disabled, a sparse partial Fisher–Yates shuffle selects unique offsets without constructing an array for every integer in a potentially large range. This preserves the unique-result requirement while avoiding memory use proportional to the full range size.
Use the output within its supported purpose
The results are designed for convenient, general-purpose random integer generation. Appropriate uses include classroom activities, ordinary drawings, randomized test data, order selection, game setup, and similar tasks that need unpredictable whole numbers.
Cryptographically strong random input and unbiased mapping improve fairness, but this page is not a complete audited lottery, gambling, security, or cryptographic-key system. It does not publish a seed, signed transcript, external randomness beacon, or reproducible audit trail. A visitor cannot later prove which browser entropy produced a particular list. For prizes, regulated drawings, access control, passwords, tokens, or other consequential decisions, follow the rules and independently audited procedures required by your organization.
Keep each result tied to its settings
Treat every displayed list as the output for the active bounds, count, and duplicate preference. The results appear as comma-separated integers that can be selected and copied. Editing any input clears the old list so it cannot be mistaken for output produced under the new settings. Select Generate numbers again after an adjustment, and confirm those three settings before relying on the result.
Related reading: Random Team Generator for Large Text Input.
Related reading: Repeat the Same Scatter Plot Result in Scatter Plot Maker.