Randomiser

Free Random Number Generator

Generate random integers or decimals within any range. Bulk mode, uniqueness, sorting, history and one-click copy β€” all in your browser.

Instant generation 100% offline Bulk up to 1000 Unique mode
Latest result
β€”
1 – 100 Integer 1 number

Settings

Number type
Range (inclusive)
Min
β€”
Max
Quantity & precision
Qty
Sorting
Order of results
Options

All results

No numbers yet
Press Generate to produce a random number.
History
No history yet β€” generated batches will appear here.

About Random Number Generators

A random number generator (RNG) produces values that cannot be predicted in advance. Software random number generators use a mathematical algorithm that starts from a seed value and produces a long, statistically random sequence. In the browser this is Math.random(), seeded by the operating system at page load β€” different every time you open the page.

This tool wraps that generator in a flexible interface: pick a range, choose integer or decimal output, generate one or many, deduplicate, sort, and copy or export. Everything runs locally.

Integer vs decimal mode

ModeOutputExample
IntegerWhole numbers only1, 7, 42, 128, 999
DecimalNumbers with fractional parts3.14, 0.782, 99.5

Decimal mode has a precision setting that controls how many digits appear after the decimal point. Two decimals for money-like values, four for statistical output, zero for a smoother-looking integer. The underlying distribution is uniform either way.

Inclusive range

Both bounds are inclusive. Asking for a random number between 1 and 6 gives you 1, 2, 3, 4, 5 or 6 β€” each with a 1-in-6 chance. This is the natural convention for dice, lottery numbers and everyday randomisation.

If you need a zero-based range for programming, use 0 to N-1.

Unique vs non-unique

By default, a batch can contain repeats β€” the same way rolling a die twice can give 4 and then 4 again. Enable Unique values only when you need distinct numbers, for example:

Uniqueness requires the range to contain at least as many possible values as the quantity requested. If you ask for 100 unique integers between 1 and 50, the tool will warn you β€” the request is impossible.

Common use cases

Games & dice rolls

Simulate dice, cards, spins or prize draws.

Prize draws

Pick winning ticket numbers from a range.

Simulation

Generate input data for statistical models.

Test data

Create random IDs and sample inputs for tests.

Random sampling

Pick unique items from a set or list.

Teaching

Demonstrate probability and distribution.

How random is "random"?

JavaScript's Math.random() is a pseudo-random number generator (PRNG). Given the same seed, it will produce the same sequence β€” but in practice the seed changes with every page load, and the statistical properties are indistinguishable from true randomness for everyday use. The distribution is uniform across the range and there is no detectable pattern.

For cryptographic purposes (passwords, keys, security tokens), a true cryptographically secure PRNG is required β€” the browser exposes this through crypto.getRandomValues(). For lotteries, games, sampling and simulation, this tool is more than sufficient.

Privacy

This random number generator runs entirely in your browser. All generation happens locally using Math.random(). Your ranges, batches and history stay on your device β€” nothing is transmitted, stored or logged on any server.

Frequently Asked Questions

How does a random number generator work?
A random number generator produces values that cannot be predicted in advance. Software generators use a mathematical algorithm called a pseudo-random number generator (PRNG) that starts from a seed and produces a long, statistically random sequence. This tool uses the browser's Math.random() function, which is seeded by the operating system at page load. For cryptographic use cases (passwords, keys), a cryptographic PRNG is required instead.
Is the output truly random?
For practical purposes, yes β€” but technically it is pseudo-random. The sequence is deterministic given the same seed, but in practice the seed changes with every page load and the statistical distribution is uniform. For lotteries, prize draws, scientific simulation and any non-cryptographic use, browser-based random generators are fine. For cryptographic purposes, use crypto.getRandomValues() instead.
Are the numbers evenly distributed?
Yes. Every integer in the range has an equal chance of being selected. For decimal mode, every value in the range has an equal probability density, and the number of decimal places you choose determines the granularity. The generator does not weight towards the middle, edges or any particular number.
What does the uniqueness option do?
When uniqueness is enabled, no number will repeat in a single batch. This is useful for lottery numbers, prize draws, sampling without replacement or any scenario where you need distinct values. Note that uniqueness requires the range to contain at least as many possible values as the quantity you requested β€” for example, you cannot generate 100 unique integers between 1 and 50.
What is the difference between integer and decimal mode?
Integer mode returns whole numbers only (like 42, 7, 128). Decimal mode returns numbers with fractional parts (like 3.14, 0.782, 99.5). Decimal mode lets you choose how many digits to keep after the decimal point β€” 2 decimal places for money, 4 for scientific data, 0 for equivalence to integers.
Can I generate many numbers at once?
Yes. Set the quantity to any number up to 1000 and the tool generates them all in one batch. For very large requests the display truncates to keep the page responsive, but copy and download always include the full set. Bulk generation is useful for statistical simulation, sampling, test data and randomised lists.
What is the difference between inclusive and exclusive upper bound?
This tool uses inclusive bounds on both ends, matching common usage β€” asking for a random number between 1 and 10 means 1 and 10 are both possible outcomes. This is the standard for dice, lottery numbers and most everyday randomisation. Note that it differs from some programming APIs (like Python's random.random()) which are exclusive.
Is this random number generator free?
Yes, it is 100% free, requires no sign-up and runs entirely in your browser. No length limits, no watermarks, no premium tier.

Related Utility Tools

Done!