About the Random Decimal Generator
Most random number tools give whole numbers. This one gives decimals: numbers such as 3.47 or 0.0825 between a smallest and a largest value that you choose. Set the range, the number of decimal places from 0 to 10, and how many numbers you want, then press Generate. Every result has exactly that many decimal places, including trailing zeros, and both ends of the range can come up. The tool counts in whole steps, so 0.1 plus 0.2 style rounding errors never appear in the results. You can ask for no repeats, use negative numbers, and copy or download the list. It runs in your browser, using its secure random generator.
Updated October 2026
How to use the Random Decimal Generator
- 1Type the smallest and the largest value. Negative numbers and decimals are fine.
- 2Choose how many decimal places each number should have, from 0 to 10.
- 3Enter how many numbers you want, up to 1,000.
- 4Tick No repeats if every number should be different.
- 5Press Generate, then copy the list or download it as a text file.
How the random decimals are made
Computers store decimals in a way that cannot hold most fractions exactly, so adding or scaling them can leave tiny errors. To avoid that, the generator works with whole numbers: it multiplies the range by ten to the power of the decimal places, picks a random whole number in that span, and divides back when writing the result.
The outcome is a set of clean values with the exact number of decimals you asked for, evenly spread across the range.
When random decimals are useful
- Making sample prices, weights, temperatures or measurements for a spreadsheet.
- Testing a form, a chart or a calculation with realistic values.
- Choosing a random percentage, probability or discount.
- Creating practice questions for maths classes.
- Simulating sensor readings for a demo.
Choosing the range and places
Match the places to the thing you are modelling: two for money, one for body temperature, three or more for lab measurements. More places mean more possible values and fewer repeats.
A narrow range with few places has few possible values. Between 1.0 and 1.5 with one place there are only six, so a long list will repeat unless you turn on No repeats and keep the count low.
Negative numbers and zero
Negative ranges work the same way: -5 to 5 with one place has 101 possible values, and 0.0 is written without a minus sign.
Phone and computer
The options stack in one column on a phone, and the list scrolls inside its box. Copy and Download are under the list. Random decimals fit tests and teaching examples. Use the Random Number Generator for whole numbers, the Rounding Calculator to trim the digits, and the Average Calculator to check a long list.
Features
- Any range, including negative values and decimals
- 0 to 10 decimal places, always shown in full
- Both the smallest and largest values can come up
- Up to 1,000 numbers per press
- No-repeats option, with a clear message when the range is too small
- Whole-step counting, so there are no floating-point artefacts
Frequently asked questions
How are the numbers chosen?
The range is divided into equally spaced steps of the size your decimal places allow. For 0 to 1 with two places that is 101 values: 0.00, 0.01 up to 1.00. One step is picked at random and every step is equally likely.
Are the end values included?
Yes. With a range of 0 to 10 and one decimal place, both 0.0 and 10.0 can appear.
Why does every number have the same number of decimals?
So the list lines up and reads like a column of measurements. A result such as 4.50 keeps its trailing zero, which matters for prices and readings.
What if my range does not fit the decimals I asked for?
If no value with that many decimal places lies inside the range, for example 0.001 to 0.002 with two places, the tool says so and suggests more decimal places or a wider range.
Can I get random decimals without repeats?
Yes. Tick No repeats. If you ask for more numbers than there are possible values, the tool tells you how many fit.
Is it suitable for lotteries or security?
The source is your browser's secure random generator, which is strong, but this page is meant for tests, sampling and learning rather than for official draws.
Does it accept a comma as the decimal mark?
Yes. A value such as 2,5 is read as 2.5. Results are always written with a full stop.
Does it send my range to a server?
No. Everything runs in your browser.