Random Decimal Generator
Generate a random decimal number within a range you choose, with as many decimal places as you need.
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
Draw random decimal values for statistical simulations or Monte Carlo methods.
Populate a spreadsheet or database with random decimal values for testing.
Generate a random probability value between 0 and 1 for a simulation.
Create random decimal values for rounding or arithmetic practice problems.
How It Works
Take the minimum, maximum, and decimal places you set
Generate a cryptographically random value within that range, scaled to the requested precision
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.