Math · FREE ONLINE TOOL

Random Number Generator

Generate random whole numbers or fixed-precision decimals within bounds, with unique-value and sorting options using exact sampling.

Your inputs

Formula and input guidance

Random numbers

Uniform sampling gives equal probability to each permitted integer.

Both endpoints are inclusive. Decimal mode samples a fixed grid at your chosen precision. Bounds support exponents through ±5,000, up to 999 decimal places and 1,000 results, within a one-million-character output budget. Uniform sampling uses cryptographic random bytes and exact integers.

Calculations run in your browser. No account needed.

Your answer starts here

Enter your values and select Calculate to see the result and its breakdown.

Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for Random Number Generator: arrows; plus and division symbols.
Random numbersUniform sampling gives equal probability to each permitted integer.
A useful distinction

Decimal precision determines the available pool

From 0 to 1 inclusive with two decimal places, there are 101 possible values: 0.00, 0.01, through 1.00. Requesting 102 unique results is impossible even though the underlying interval contains infinitely many real numbers.

How many unique decimal draws are possible?

Distinct values from 0 to 1. A (1) → 11. B (2) → 101.
How many unique decimal draws are possible?
Decimal placesCalculationDistinct values from 0 to 1
A 1(1 − 0) × 10 + 111
B 2(1 − 0) × 100 + 1101

Checking range and repetition settings

Choose the minimum, maximum, and number of results according to the sample you need. Check whether endpoints are included and whether repeated values are allowed in the selected options. A random sample can contain clusters or repeats without indicating an error. Keep the generator's stated limitations in mind before using output for a security-sensitive or formally regulated drawing.

Set the range, precision and duplicate rule before generating

Choose whole numbers or a fixed decimal grid, enter the inclusive minimum and maximum, and select how many results to generate. Allow duplicates samples with replacement; Unique values samples without replacement. Sorting changes presentation after selection, not the sampling rule.

The tool uses cryptographic random bytes and rejection sampling. Editing an input does not generate a new result; select Calculate when the requested settings are ready.

Count the available decimal values before requesting unique results

From 1.00 through 1.03 at two decimal places, the available grid contains four values: 1.00, 1.01, 1.02 and 1.03. Requesting all four uniquely and sorting ascending must return that complete list, although their original generation order can vary.

The bounds themselves need not lie on the grid. At two decimal places, bounds 1.004 and 1.026 contain 1.01 and 1.02; they do not make 1.004 an eligible output.

Fixed precision defines the actual sample space
BoundsDecimal placesEligible values
1.00 to 1.0321.00, 1.01, 1.02, 1.03
1.004 to 1.02621.01, 1.02
1 to 301, 2, 3

Understand independence and uniqueness as different requirements

With duplicates allowed, consecutive draws may repeat; a recent value is not automatically excluded. Without duplicates, each selected value is removed from the available set for that request, so the draws cannot be independent in the same way.

A short sample can contain streaks or uneven frequencies without proving that the method is biased. Conversely, merely looking well mixed is not evidence that a random source is suitable for a particular regulated process.

Use random outputs in the right context

Bounds support large signed integers and fixed precision subject to the displayed output-size limits. An impossible unique request is rejected when fewer eligible grid points exist than the requested count. A range with no grid point at the chosen precision is also invalid.

This interface does not provide a reproducible seed, a public audit trail, a lottery certification or a password policy. Use the Password Generator when character rules are needed, and record the original unsorted draw if order matters to an experiment.

Random numbers: formula and assumptions

Uniform sampling gives equal probability to each permitted integer.

Both endpoints are inclusive. Decimal mode samples a fixed grid at your chosen precision. Bounds support exponents through ±5,000, up to 999 decimal places and 1,000 results, within a one-million-character output budget. Uniform sampling uses cryptographic random bytes and exact integers.

Use Random numbers

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

Are the minimum and maximum included?

Integer bounds are inclusive. Decimal mode samples the permitted fixed-precision grid within the bounds, so an endpoint must lie on that grid.

Why can a request for unique values be rejected?

The requested count cannot exceed the number of permitted values in the range or decimal grid. Output-size limits also apply.

Can I generate unique decimal values?

Yes. Decimal mode samples a fixed grid at the selected number of decimal places, and uniqueness applies to those grid values.

Does sorting make the selection less random?

Sorting rearranges the already selected values for display. It changes their order, not which values were drawn.

Can I set a seed to reproduce the same output?

No. This interface uses browser cryptographic random values and does not expose a seed. Save the generated list if you need to reuse that exact selection.

See our methodology and editorial policy.