Random Number Generator
NewGenerate random integers or decimals within a range, with optional uniqueness and precision controls.
Random number generator
Random Number Generator
Generate random integers or decimals within a range, with optional uniqueness and precision controls.
Generate secure random integers or decimals, with optional uniqueness and quick summary statistics.
Generated values
Quick stats
Count
Sum
Average
Frequently Asked Questions
Is this using Math.random()?
It prefers `crypto.getRandomValues()` when the browser supports it, and only falls back to `Math.random()` if that API is unavailable.
Why won't unique generation work with decimal min and max values when decimals are off?
Unique generation without replacement only works for integer ranges in integer mode. If duplicates are disallowed, non-integer min or max values are rejected.
Why did it say there aren't enough unique decimal values?
When decimals are enabled, uniqueness is limited by your numeric range and selected decimal places. A small range at low precision may not contain as many distinct values as you requested.
What's the max quantity and precision this tool will generate?
Quantity is clamped to 1-1000, and decimal places are clamped to 0-10 before generation starts.
If I copy the result, does it keep the shown decimal formatting?
Yes. The copied output is the same comma-separated string shown in the results box, including fixed decimal places when decimals are enabled.