Skip to content

Random Number Generator

Choose a minimum and maximum, then generate up to 1,000 random integers or fixed-decimal numbers. Allow repeats or draw unique values, sort multiple results, and copy them. After the first draw, the settings collapse so you can generate again quickly.

Number range

Generation options

How to Generate a Random Number

Enter the Minimum and Maximum. The default range is 1 to 100, with one whole number per draw.

Set the Count, Decimal places, Result order, and Unique values options before generating. Select Generate number or Generate numbers to draw your result.

After the first successful draw, the settings collapse. Select Generate again for another draw with the same settings, or Edit to change them. Use the copy icon in the result box to copy one value or the full list.

Choose a Range, Including Negative Numbers

In whole-number mode, the range includes both endpoints. A draw from 1 to 100 can return 1, 100, or any integer between them.

Negative ranges and intervals crossing zero work the same way. For example, -5 to 5 contains 11 eligible integers, including zero.

The minimum must not exceed the maximum. If both bounds are the same and the value is supported, that value is the only possible result.

Generate Multiple Numbers Without Repeats

Set Count to any whole number from 1 to 1,000. With Unique values off, each draw uses the entire eligible range, so duplicates and streaks are possible.

Turn Unique values on to sample without replacement: a value can appear only once in that result. The range must contain at least as many eligible values as the requested count.

Uniqueness does not carry over to the next generation. Each time you select Generate again, the tool makes a fresh draw from the original range.

Random Decimals and Fixed Precision

Choose 1 to 6 decimal places to draw from a fixed grid. Two places mean steps of 0.01; the generator selects one of those values instead of drawing an arbitrary fraction and rounding it afterward.

Only grid values inside your range are eligible. With a minimum of 1.123, a maximum of 1.138, and two decimal places, the only possible result is 1.13. Neither 1.12 nor 1.14 is inside the range.

The result keeps the selected display precision. With two decimal places, a drawn value of 2.5 appears and copies as 2.50.

Integer and decimal settings

Precision determines which values can be selected within the entered range.

Integer and decimal settings
ModePrecisionEligible valuesExample
Whole numbers0 decimal placesEvery integer from the minimum to the maximum, inclusive1 to 5: 1, 2, 3, 4, 5
One decimal placeSteps of 0.1Tenths that fall within the selected range1 to 1.5: 1.0, 1.1, …, 1.5
Two decimal placesSteps of 0.01Hundredths that fall within the selected range1.23 to 1.26: 1.23, 1.24, 1.25, 1.26
Six decimal placesSteps of 0.000001Millionths, provided the range is within supported precision0 to 0.000002: 0.000000, 0.000001, 0.000002

Swipe horizontally to view the full table.

Probability of Each Number

Every eligible value has an equal theoretical chance on a single draw. A range of 1 to 100 therefore gives each integer a 1% chance.

If repeats are allowed, the previous result does not affect the next draw. When drawing unique numbers, each eligible value has the same chance of appearing in the finished sample, but cannot occur twice in that sample.

Random results do not have to look evenly spread across a small number of draws. Repeated numbers are normal when uniqueness is off.

Chance of one particular integer on one draw

Examples assume an inclusive whole-number range and equally likely values.

Chance of one particular integer on one draw
RangePossible integersChance per value
1 to 2250%
1 to 66About 16.67%
1 to 101010%
1 to 1001001%
1 to 1,0001,0000.1%

Swipe horizontally to view the full table.

Keep the Draw Order or Sort the Result

Generated order preserves the sequence in which values were selected. Choose Ascending or Descending to reorder the completed list numerically.

Sorting does not change which values were drawn. To randomize the order of all integers in a short range, request the full count of unique values and leave the result in Generated order.

How Browser Randomness Works

The generator uses the browser's Crypto.getRandomValues() through shared random-number helpers, rather than Math.random(). It maps the resulting random integers onto the eligible range using rejection sampling so the remainder of an uneven division cannot favor certain values.

For very large supported ranges, the helpers use a 53-bit selection method. The tool does not expose a seed, save random-generator state, or create independently verifiable records.

Precision and Practical Limits

JavaScript numbers cannot distinguish every integer at arbitrary magnitudes. Whole-number bounds must be safe integers; decimal bounds must also form a supported scaled grid with distinguishable results.

A range that is too large, too finely spaced, or contains no value at the chosen precision is rejected rather than producing misleading results. Reducing decimal places or choosing smaller bounds may help.

Numbers are generated locally in your browser and are not stored by the tool. Copying places them on your clipboard. For official lotteries, regulated selections, cryptographic secrets, or work requiring a reproducible or independently auditable draw, use a system designed for that purpose.

Range and Probability Formulas

For an inclusive range of whole numbers, a and b are the minimum and maximum. For unique draws, k is the number selected.

Formula variables

Minimum whole-number value
Maximum whole-number value
Total number of eligible values
Number of unique values drawn
Eligible integers
Chance of one integer on a single draw
Chance an integer appears in a unique sample

Examples

Pick a random number from 1 to 100

1

Input

Minimum 1; maximum 100; count 1; decimal places 0.

Show result

Result

One integer between 1 and 100, inclusive.

Every integer has a 1% chance on this draw.

Pick five different numbers

2

Input

Minimum 1; maximum 50; count 5; Unique values on.

Show result

Result

Five distinct integers from 1 through 50.

Selecting Generate again starts a new independent sample.

Generate random decimals

3

Input

Minimum 1.23; maximum 1.26; decimal places 2; count 3.

Show result

Result

Three values drawn from 1.23, 1.24, 1.25, or 1.26.

Duplicates are possible unless Unique values is on.

Use a range that crosses zero

4

Input

Minimum -5; maximum 5; count 1.

Show result

Result

One integer from -5 through 5.

The range contains 11 equally likely values, including zero.

Shuffle the numbers 1 through 10

5

Input

Minimum 1; maximum 10; count 10; Unique values on; Result order Generated order.

Show result

Result

All ten integers, each appearing once in random order.

Ascending or Descending would remove the randomized order.

Frequently Asked Questions

How do I generate another number without changing the range?

Select Generate again. After the first successful draw, the generator keeps the current range and other settings while showing a compact result view.

How do I change the range after generating?

Select Edit beside the result heading. Adjust the settings, then generate again.

Are the minimum and maximum included?

Yes for whole-number ranges. With decimals, an endpoint is eligible only when it is on the selected fixed-precision grid.

Can I generate 1,000 random numbers?

Yes. Set Count to any whole number from 1 to 1,000. If Unique values is on, the range must contain at least that many eligible values.

Can I generate numbers without duplicates?

Yes. Turn on Unique values to avoid duplicates within the current result. The next generation starts from the full range again.

Can I draw decimals instead of integers?

Yes. Choose 1 to 6 decimal places. Only values at that precision and inside the entered bounds can appear.

Why does a decimal range sometimes fail?

The range may contain no valid grid value at the chosen precision, or its magnitude may exceed supported numeric precision. Try a wider range, fewer decimal places, or smaller bounds.

Can I generate negative numbers?

Yes. Both negative-only ranges and ranges crossing zero are supported.

Can I copy several numbers at once?

Yes. The copy icon in the result box copies every generated number, one per line.

Does the tool use Math.random()?

No. It uses the browser's Crypto.getRandomValues() and range-mapping helpers that avoid modulo bias.

Can I reproduce a past draw with a seed?

No. Seeded or reproducible sequences are not supported, and previous results are not saved.

Are generated numbers sent to a server?

The tool generates results in your browser and does not intentionally transmit them. Copying a result places it on your system clipboard.