💰 Financial Calculators ❤️ Health & Fitness Calculators 📐 Math Calculators 🔄 Conversion Calculators 📊 Business Calculators 🏗️ Construction Calculators 📅 Date & Time Calculators 🎓 Education Calculators 🚗 Automotive Calculators 🧮 Everyday Calculators

Random Number Generator

Generate random integers or decimals within any range. Includes dice roll, coin flip, and Lotto number presets. Optional no-duplicates mode.

Quick Calculator Get a fast estimate

How to Use

The Extended Calculator adds a histogram of results, multi-die rolling, card drawing from a 52-card deck, and SA Lotto/PowerBall quick picks. The Professional Calculator adds custom probability distributions (Normal, Exponential, Triangular), weighted random selection, and mathematical sequence generation.

Need more detail?
📊 Extended Calculator More options, charts, and scenario comparison

How Random Numbers Are Generated

Integer: Math.floor(Math.random() × (max − min + 1)) + min

Decimal: Math.random() × (max − min) + min

Uniform distribution: Each value in the range is equally likely

Normal distribution: Box-Muller transform using two uniform samples

Unique numbers: Fisher-Yates shuffle on the full range

Use Cases

Dice simulation: Min=1, Max=6, Integer → one die roll

Coin flip: Min=0, Max=1, Integer → 0=Tails, 1=Heads

SA Lotto: Min=1, Max=52, Count=6, Unique → 6 unique lotto numbers

Random winner from 30: Min=1, Max=30, Count=1

Normal distribution: Use Professional tab with μ=50, σ=15

Need full precision?
🔬 Professional Calculator Complete parameters, sensitivity analysis, and detailed breakdown

Frequently Asked Questions

These are pseudo-random numbers from JavaScript's Math.random(). They are statistically random and suitable for games, simulations, and sampling — but not for cryptographic security. For cryptography, use window.crypto.getRandomValues().
True random numbers require a physical entropy source (radioactive decay, atmospheric noise). Pseudo-random numbers come from a deterministic algorithm that appears random. For everyday purposes like games and sampling, pseudo-random is perfectly adequate.
The SA National Lottery requires choosing 6 numbers from 1 to 52. C(52,6) = 52!/(6!×46!) = 20,358,520. Your chance of winning the jackpot with one ticket is approximately 1 in 20.4 million.
Yes! Use the Extended Calculator's Dice tab — it supports d4, d6, d8, d10, d12, d20, and d100. Or use Min=1, Max=N for any custom die.
Number your participants (e.g., 1 to 50), set Min=1, Max=50, Count=1, and click Generate. For multiple prizes with no repeat winners, enable "No duplicates" and set Count to the number of prizes.

Related Calculators