Gaussian random numbers
Generate random numbers from a normal (Gaussian) distribution with any mean and standard deviation. Choose how many numbers and decimal places you need.
- 100% free
- No signup
- Runs in your browser
How to use
- Enter the mean (the center of the distribution) and the standard deviation (how spread out the values are).
- Choose how many numbers to generate (up to 10,000) and how many decimal places to keep.
- Click Generate. The numbers appear one per line, and below them the mean and standard deviation of the generated sample.
The normal distribution
The normal or Gaussian distribution is the familiar bell curve. Values near the mean are the most common, and values further away become rarer and rarer on both sides. Heights, measurement errors and test scores are often close to normally distributed.
The standard deviation (SD) sets the width of the bell. About 68% of the values lie within one SD of the mean, about 95% within two SDs and about 99.7% within three SDs.
The generator uses the Box–Muller transform, which turns two uniform random numbers into a normally distributed one. With mean 0 and SD 1 you get the standard normal distribution.
The 68–95–99.7 rule
| Range | Share of values |
|---|---|
| Mean ± 1 SD | ≈ 68.3% |
| Mean ± 2 SD | ≈ 95.4% |
| Mean ± 3 SD | ≈ 99.7% |
| Beyond ± 3 SD | ≈ 0.3% |
Examples
| Example | Result |
|---|---|
| Mean 0, SD 1 | Standard normal values such as −0.4312 or 1.0857 |
| Mean 100, SD 15, 0 decimal places | IQ-like scores; about 95% between 70 and 130 |
| Mean 170, SD 7, 1 decimal place | Simulated body heights in centimeters |