RandomNr

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

0.47

Range 0 to 1 · 2 dp · 1 result

Choose the range

How many decimals to generate

Options

Sort results
Copy separator

How to use the random decimal generator

  1. Set the lowest and highest value. Decimals and negatives are both fine.
  2. Choose the number of decimal places, from 0 up to 10.
  3. Set how many values you need, then press Generate.
  4. 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 placesStep sizeDistinct values in 0 to 1Typical use
012whole numbers only
10.111quick estimates
20.01101money style values
30.0011,001measurements
40.000110,001probabilities
60.0000011,000,001scientific 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:

RangeExpected meanExpected standard deviation
0 to 10.50.2887
0 to 1052.887
0 to 1005028.87
-1 to 100.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

Need whole numbers instead? Use the random integer generator, or draw a percentage with the random percentage generator.