Random Number Generator
Free random number generator. Uniform, normal, exponential, Poisson. Statistics, histogram, Q-Q plot
Why This Statistical Analysis Matters
Why: Statistical calculator for analysis.
How: Enter inputs and compute results.
Generate from Uniform, Normal, Exponential, Poisson
Multiple distributions, optional seed, histogram, summary stats. Box-Muller for normal, inverse CDF for exponential.
Real-World Scenarios â Click to Load
Distribution
For educational and informational purposes only. Verify with a qualified professional.
Key Takeaways
- ⢠PRNG vs true randomness: Computers use pseudorandom algorithms; same seed produces same sequence
- ⢠Uniform: each value equally likely. Normal: bell curve. Exponential: wait times. Poisson: counts
- ⢠Box-Muller transforms two uniforms into two normals. Inverse CDF for exponential
- ⢠Monte Carlo: use random numbers for simulation, integration, optimization
- ⢠For cryptography, use crypto.getRandomValues() or NIST-approved RNGs
Did You Know?
Expert Tips
Use seed for reproducibility
Same seed â same sequence. Essential for debugging and reproducibility.
Histogram validates distribution
Normal should look bell-shaped. Uniform flat. Exponential right-skewed.
Q-Q plot for normality
Sample vs theoretical quantiles. Straight line suggests normal fit.
Not for cryptography
Use crypto.getRandomValues() or NIST-approved RNGs for security.
Distribution Comparison
| Distribution | Use Case | Parameters |
|---|---|---|
| Uniform Int | Dice, lottery, IDs | min, max |
| Uniform Float | Continuous [a,b] | min, max, decimals |
| Normal | Heights, errors, scores | Îź, Ď |
| Exponential | Wait times, lifetimes | Îť (rate) |
| Poisson | Event counts, arrivals | Îť (mean) |
Frequently Asked Questions
Is this true randomness?
No. Computers use pseudorandom number generators (PRNGs). Same seed gives same sequence. For cryptography use hardware RNGs.
What is the Box-Muller transform?
Converts two uniform [0,1] values into two standard normal values. Z = â(â2 ln Uâ) cos(2Ď Uâ).
How does exponential generation work?
X = âln(U)/Îť. This is the inverse CDF of the exponential distribution.
What is Monte Carlo?
Using random sampling to estimate quantities: Ď, integrals, option pricing, particle physics.
Why use a seed?
Reproducibility. Same seed â same sequence. Essential for debugging, testing, and reproducible research.
Can I use this for lottery?
Yes. Uniform integer with no duplicates. But for real lotteries, use cryptographically secure RNGs.
What is a Q-Q plot?
Compares sample quantiles to theoretical. For normal data, points should fall on a straight line.
What is entropy?
Measure of unpredictability. Cryptographic RNGs need high entropy from hardware (noise, timing).
By the Numbers
Official Data Sources
Disclaimer: This generator uses pseudorandom algorithms (Mulberry32 with seed, Math.random). Not suitable for cryptographic or security-critical applications. Use NIST-approved cryptographic RNGs for those purposes.
Related Calculators
Empirical Rule Calculator
Apply the 68-95-99.7 rule to normal distributions. Given mean and SD, see what percentage falls within 1, 2, 3 standard deviations. Compare with Chebyshev.
StatisticsError Propagation Calculator
Propagate uncertainties through mathematical operations: addition, subtraction, multiplication, division, powers, and custom functions. Uses partial...
StatisticsTwo Envelopes Paradox Calculator
Explore the Two Envelopes Paradox with interactive simulation. See why the naive switching argument fails through Bayesian analysis.
StatisticsUniform Distribution Calculator
Calculate PDF, CDF, mean, variance, and probabilities for continuous Uniform(a,b) and discrete Uniform{a,...,b} distributions. Fair die, random numbers...
StatisticsRaw Score Calculator
Convert between raw scores, z-scores, percentiles, and standard scores (T-scores, IQ, SAT, stanine). The reverse of the z-score calculator.
StatisticsZ-Score Calculator
Calculate z-scores, percentiles, and probabilities from raw scores. Convert between z-scores and raw values, find areas under the normal curve, and interpret...
Statistics