Skip to content

Random Decimal Generator

Generate a random decimal number within a range you choose, with as many decimal places as you need.

Category: randomizer
Use Case: Statistical Sampling, Test Data Generation, Simulations & Probability
Privacy: 100% browser-based

Click Generate to get started

Recommended Settings

Pro Tips

  • The range is inclusive on both ends, and the decimal places setting controls how precise the result is
  • Use 0 to 1 with 2 decimal places to generate values like probabilities or percentages (as a fraction)
  • Numbers are generated using the Web Crypto API's random number source for higher-quality randomness
  • Increase decimal places for scientific or engineering use cases that need finer precision

Most Popular

Most users generate values between 0 and 1 with 2-4 decimal places for probability and simulation work

When to Use This Tool

Statistical Sampling

Draw random decimal values for statistical simulations or Monte Carlo methods.

Test Data Generation

Populate a spreadsheet or database with random decimal values for testing.

Simulations & Probability

Generate a random probability value between 0 and 1 for a simulation.

Classroom Math Activities

Create random decimal values for rounding or arithmetic practice problems.

How It Works

1

Take the minimum, maximum, and decimal places you set

2

Generate a cryptographically random value within that range, scaled to the requested precision

3

Format and display the result, keeping a short history of your recent picks

100% Private

Files never leave your device. All processing happens locally in your browser.

Lightning Fast

Powered by Web Crypto API (crypto.getRandomValues) for optimal performance on modern browsers.

Open Source

Built with verified, open-source libraries. Fully transparent.

Frequently Asked Questions

Is the range inclusive?

Yes, both the minimum and maximum values themselves are possible results, subject to rounding at your chosen decimal precision.

How many decimal places can I generate?

Between 0 (a whole number) and 10 decimal places.

How random is this really?

It uses the Web Crypto API (crypto.getRandomValues) rather than Math.random(), which produces higher-quality randomness.

Is my data sent to a server?

No. The random decimal is generated entirely in your browser.

Can I generate whole numbers instead?

Yes, set decimal places to 0, or use the dedicated Random Number Generator for whole numbers.