Number Generators
Random Decimal Number Generator
Generate random decimal numbers with the precision you choose. Set the range, the decimal places and how many values you need.
Random Decimal Number Generator
Range 0 to 1 · 2 dp · 1 result
Choose the range
How many decimals to generate
How to use the random decimal generator
- Set the lowest and highest value. Decimals and negatives are both fine.
- Choose the number of decimal places, from 0 up to 10.
- Set how many values you need, then press Generate.
- Copy the results or download them as a CSV, one value per row.
Choosing the number of decimal places
The decimal places setting controls the step between possible values, and with it how many distinct results a range can produce. In the range 0 to 1 the options work out like this.
| Decimal places | Step size | Distinct values in 0 to 1 | Typical use |
|---|---|---|---|
| 0 | 1 | 2 | whole numbers only |
| 1 | 0.1 | 11 | quick estimates |
| 2 | 0.01 | 101 | money style values |
| 3 | 0.001 | 1,001 | measurements |
| 4 | 0.0001 | 10,001 | probabilities |
| 6 | 0.000001 | 1,000,001 | scientific and statistical work |
Some generators advertise hundreds of digits of precision. Calculator.net, for example, offers decimals up to 999 digits. In practice almost all real work sits inside six places, and this tool keeps the setting in that practical band so the values stay readable and spreadsheet friendly.
What a uniform decimal draw looks like
Values here are drawn uniformly, meaning every part of the range is equally likely. A uniform draw between a and b has a mean of (a + b) divided by 2 and a standard deviation of (b minus a) divided by the square root of 12. For the common ranges that gives:
| Range | Expected mean | Expected standard deviation |
|---|---|---|
| 0 to 1 | 0.5 | 0.2887 |
| 0 to 10 | 5 | 2.887 |
| 0 to 100 | 50 | 28.87 |
| -1 to 1 | 0 | 0.5774 |
Generate a large batch and the sample statistics in the summary line should land close to these figures. That is a quick, concrete check that the generator is spreading values evenly rather than bunching them.
Floating point, rounding and why fixed precision matters
Computers store decimals in binary, and many everyday values such as 0.1 have no exact binary form, which is why naive maths can produce results like 0.30000000000000004. This tool sidesteps that by drawing a full precision fraction from the browser cryptographic source and then rounding once to the decimal places you chose, so every value you see is exactly as wide as you asked for and imports cleanly into a spreadsheet.
Decimals or integers
Reach for decimals when the value is a measurement, a probability or a price, anything that lives between whole numbers. When the value is a count, an index or an identifier, whole numbers are the right shape, and the random integer generator handles those with the same range and no repeats options.
Popular generators
Frequently asked questions
How do I set the number of decimal places
Use the decimal places field. Set it to 2 for values like 0.47, or higher for more precision, up to 10 places.
Can I generate decimals in any range
Yes. Set the lowest and highest value, including negatives, for example minus 1 to 1. Both ends are possible results.
Can I block duplicate decimals
Yes. Tick no repeats and every value in the set is different at the precision you chose.
Are the endpoints included
The lowest value can appear, and the highest is reached at the rounding precision you set. Wider precision spreads the values more finely.
Is it free
Yes, free and with no sign up. Every draw runs in your browser and nothing you enter leaves your device.
Related generators
- Random Number Generator
- Random Integer Generator
- Random Decimal Number Generator
- Random Number List Generator
- Random Number Generator With No Repeats
- Random Even Number Generator
- Random Odd Number Generator
- Random Negative Number Generator
- Random Number Divisible By N
- Number Randomizer
Need whole numbers instead? Use the random integer generator, or draw a percentage with the random percentage generator.