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

Overview

How to use

  1. Enter the mean (the center of the distribution) and the standard deviation (how spread out the values are).
  2. Choose how many numbers to generate (up to 10,000) and how many decimal places to keep.
  3. 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
Tips: The standard normal distribution has mean 0 and standard deviation 1.

FAQ

The Box–Muller transform produces an exact normal distribution from uniform random inputs; the only limits are rounding and the precision of the random source.

A random sample always differs a little from the distribution it comes from. The more numbers you generate, the closer the sample mean and standard deviation get to the values you entered.

Yes. The normal distribution has no lower or upper limit, so with mean 0 about half of the values are negative. With a large mean and small SD, negative values become extremely rare.

Copy the result and paste it into a column. In Excel you can also use =NORM.INV(RAND(), mean, sd) to generate such values directly.

Need another tool?

Explore all 61 free tools: calculators, converters, date and time tools, random generators and text utilities.

Browse all tools