Random Number Generator
Generate 1 to 1,000 random numbers between your chosen minimum and maximum. Allow or prevent repeats, choose up to 6 decimal places, and sort the results when needed.
Generate random numbers within your chosen range
Enter a minimum and maximum, then select Generate number. The result will fall within the range allowed by your bounds and selected decimal precision.
Open More options to generate as many as 1,000 values, prevent duplicate results, choose between 0 and 6 decimal places, or display the generated numbers in ascending or descending order.
After generating the result, use Generate again for a new selection or Copy to place each number on a separate line in your clipboard.
How inclusive integer ranges work
When Decimal places is set to 0, the generator works with whole numbers and includes both the minimum and maximum. A range from 1 to 100 contains 100 eligible integers and can return either 1 or 100.
The number of possible integers is the maximum minus the minimum, plus one. The extra one accounts for both endpoints. For example, 5 through 8 contains four values: 5, 6, 7, and 8.
Ranges that cross zero include zero as an eligible value. A range from -5 to 5 therefore contains 11 integers, not 10.
How fixed decimal precision works
Decimal mode selects values from an exact fixed-precision grid. One decimal place uses steps of 0.1, two decimal places use steps of 0.01, and six decimal places use steps of 0.000001.
For example, a range from 1.12 to 1.18 with two decimal places contains seven eligible values: 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, and 1.18.
The tool selects directly from this grid rather than generating an unrestricted decimal and rounding it afterward. Generated results are displayed with the exact number of decimal places selected, including trailing zeros such as 2.50.
What happens when a decimal bound is not on the grid
A decimal boundary can be selected only when it fits the chosen precision. The lower bound moves inward to the first eligible grid value, while the upper bound moves inward to the final eligible grid value.
For example, with a minimum of 1.123, a maximum of 1.138, and two decimal places, the only eligible result is 1.13. Values such as 1.12 fall below the minimum, while 1.14 exceeds the maximum.
Some narrow ranges contain no value at the selected precision. A range from 1.121 to 1.129 has no two-decimal value inside it, so the tool asks you to widen the range or increase the decimal precision.
How many possible values are in the range
The size of the eligible pool matters when you request several unique numbers. Integers from 1 through 10 provide 10 possible values. Decimals from 0.1 through 0.5 at one decimal place provide five values.
A range from 0 to 1 at two decimal places contains 101 possible values because it includes 0.00, 1.00, and every 0.01 step between them.
When Unique values is enabled, the requested count cannot exceed the number of eligible values. For example, the generator can create five unique integers from 1 through 5, but it cannot create six.
Why random numbers can repeat
When Unique values is turned off, every draw can use the complete eligible range. A number selected earlier can therefore appear again in the same result.
Repeated values are a normal part of independent random selection. They do not automatically indicate that the generator is stuck, biased, or malfunctioning.
For example, generating ten numbers from 1 through 3 will necessarily include repeats because only three possible values exist.
Generate unique numbers without repeats
Turn on Unique values when every generated result must be different. Once a value is selected, it is excluded from the remaining draws in that generation.
This is similar to drawing numbered cards without returning each card to the container. The available pool becomes smaller after every selection.
Uniqueness applies only to the current result. A number generated previously can appear again after you select Generate again.
What sorting changes
Choose Ascending to display values from smallest to largest or Descending to display them from largest to smallest. Choose Keep generated order when the original selection order matters.
Sorting changes only the order in which the results are displayed. It does not generate a different set of values or make particular numbers more likely.
For example, a generated order of 42, 7, and 19 becomes 7, 19, and 42 when sorted ascending. If those values represent first, second, and third selections, keep the generated order instead.
Generate negative numbers and ranges crossing zero
Both the minimum and maximum can be negative. A range from -20 to -10 generates values entirely below zero.
You can also use a range that crosses zero, such as -10 to 10. In integer mode, zero and both endpoints are eligible.
When sorting a mixed negative and positive result, ascending order places the most negative values first, while descending order places the largest positive values first.
Useful ways to generate random numbers
Use one generated integer to select a numbered student, question, page, task, seat, participant, or game action. Make sure the minimum and maximum match the numbering system you are using.
Generate several unique integers for a draw order, sample rows, practice questions, numbered tickets, or a subset of items from a larger numbered list.
Fixed-precision decimals can provide placeholder measurements, prices, percentages, coordinates, test inputs, or mock spreadsheet data. Generated values should be reviewed before being used in any real analysis or published dataset.
Common range and generation mistakes
Do not request more unique values than the range contains. A range from 1 through 5 cannot produce six different integers.
Choose enough decimal places for the interval you entered. A narrow range may contain no eligible two-decimal value even though it contains many mathematical decimals.
Keep the generated order when selection sequence matters. Sorting removes the original first-to-last draw order.
Do not assume a repeated number is an error when Unique values is disabled. Independent selections are allowed to produce the same result more than once.
Remember that inclusive ranges count both endpoints and that a range crossing from a negative number to a positive number also contains zero.
Browser processing and randomness limitations
Range validation, random selection, uniqueness checks, sorting, formatting, and copying are handled in your browser. Your settings and generated numbers are not sent to a server or added to the URL.
The generator uses browser-provided Web Crypto random values when available and maps them to the eligible integer or decimal grid.
This tool is suitable for ordinary choices, games, classroom activities, examples, testing, and informal sampling. It is not a physical-randomness service, an independently audited drawing platform, a reproducible seeded generator, or a tool for creating passwords, encryption keys, recovery codes, or other security-sensitive values.
Examples
Pick one number from 1 to 100
Minimum: 1 · Maximum: 100 · Count: 1 · Decimal places: 0
Result: One integer from 1 through 100, with both endpoints eligible
Use this for a simple numbered choice, game, question, or participant.
Choose several student numbers
Minimum: 1 · Maximum: 28 · Count: 5 · Unique values: On
Result: Five different student numbers from 1 through 28
Turn uniqueness off when the same student number should be allowed to appear more than once.
Generate fixed two-decimal values
Minimum: 10 · Maximum: 99.99 · Count: 5 · Decimal places: 2
Result: Five values selected in 0.01 steps and displayed with two decimal places
Sort ascending when the values are easier to use as an ordered sample.
Use decimal bounds between grid points
Minimum: 1.123 · Maximum: 1.138 · Decimal places: 2
Result: 1.13
It is the only two-decimal value that falls within the entered bounds.
Generate values below and above zero
Minimum: -5 · Maximum: 5 · Count: 6 · Decimal places: 0
Result: Six integers selected from the 11 eligible values, including zero
Enable Unique values when all six results must be different.
Create a shuffled draw order
Minimum: 1 · Maximum: 10 · Count: 10 · Unique values: On · Sort: Keep generated order
Result: Every integer from 1 through 10 displayed once in randomized order
Do not sort the result when each position represents a draw order.
Sort a generated sample
Minimum: 100 · Maximum: 999 · Count: 20 · Sort: Ascending
Result: Twenty generated integers displayed from smallest to largest
Sorting changes the display order, not the values selected.
Frequently Asked Questions
What is a random number generator?
A random number generator selects one or more values from an eligible range without requiring you to choose the values manually. This tool supports whole numbers and fixed-precision decimals.
Are the minimum and maximum included?
Both endpoints are included in integer mode. In decimal mode, a boundary is eligible only when it lies on the selected fixed-precision grid.
How many numbers can I generate at once?
You can generate between 1 and 1,000 values in one result.
Can I generate decimal numbers?
Yes. Choose between 1 and 6 decimal places. The tool then selects from the fixed grid created by that precision.
Why does the decimal result have trailing zeros?
Results are displayed using the exact selected precision. For example, a value of 2.5 is displayed as 2.50 when you choose two decimal places.
Why does my decimal range contain no supported values?
The range may be narrower than the selected decimal step or may fall entirely between two grid values. Widen the minimum and maximum or select more decimal places.
Can the same number appear more than once?
Yes when Unique values is disabled. Every draw uses the full eligible range, so repeated values are possible and normal.
How do I generate numbers without repeats?
Open More options and enable Unique values. The tool will select each value at most once within that generated result.
Why can I not request more unique numbers?
The selected range and precision do not contain enough eligible values. Increase the range, increase the decimal precision, or reduce the requested count.
How many integers are between two bounds?
For an inclusive integer range, subtract the minimum from the maximum and add one. A range from 20 through 30 therefore contains 11 integers.
Does a negative-to-positive range include zero?
Yes. In integer mode, a range such as -3 through 3 contains -3, -2, -1, 0, 1, 2, and 3.
Does sorting affect the random selection?
No. Sorting is applied after the numbers have been generated. It changes their display order but does not change which values were selected.
Can I preserve the original draw order?
Yes. Choose Keep generated order. This is important when each result position represents a first, second, third, or later selection.
Can I copy all generated numbers?
Yes. Select Copy after generating the result. Each formatted number is copied on a separate line.
Why are extremely wide integer ranges rejected?
Integer mode supports ranges containing no more than 4,294,967,296 possible values. Choose narrower safe-integer bounds when the range exceeds that limit.
Are the generated numbers saved?
No. The current result remains only in the page session. Copy the numbers before refreshing or closing the page when you need to keep them.
Are my settings or results sent to a server?
No. Validation, generation, sorting, and formatting happen in your browser, and the values are not included in the page URL.
Are these numbers truly random?
The tool uses browser-provided Web Crypto random values when available. It is suitable for ordinary random selections, but it is not a physical-randomness service or independently audited drawing system.
Can I use the output for passwords or encryption keys?
No. Use a dedicated security tool designed for the exact password, token, recovery-code, or cryptographic-key format you need.
Can I reproduce the same sequence later?
No. This tool does not accept a seed or save its random state, so it is not designed to reproduce an earlier sequence.
Related Tools
Generators
Random Name Picker
Pick one or more names from a class list, meeting roster, giveaway, or group.
Generators
Random Picker Wheel
Add names or choices, spin the wheel, and select one entry at random.
Generators
List Randomizer
Shuffle names, tasks, or any line-separated list into a new random order.
Generators
Random Team Generator
Split a list of names into random teams or groups with evenly distributed headcounts.