Truncated Normal Generator & Visualizer

Generate bounded normal (truncated Gaussian) samples with lower/upper limits, then visualize histogram + PDF/CDF.

Everything runs in your browser; nothing is uploaded. Share URLs contain settings only (no generated samples).

Secure mode uses CSPRNG. Seeded mode is for reproducibility, not secrecy.

Other languages: ja | en

What is a truncated normal?

A truncated normal is a normal distribution conditioned to stay within bounds such as a≤X≤b. It is also known as a bounded normal or truncated Gaussian.

How it works: it uses the inverse CDF method (sample a uniform random number and map it through the truncated CDF). This avoids rejection-sampling slowdowns when truncation is extreme.

Do not use this tool as the sole basis for high-stakes decisions (medical/financial/legal). You don’t need to enter personal information to use it.

Presets

Pick a practical preset (you can tweak values after applying). It regenerates instantly.

Tip: presets are meant as starting points.

Generator

Set μ/σ and bounds, then generate samples and export results.

Sample stats

Samples (first 20)


      

FAQ

What is a truncated normal?
A normal distribution conditioned to stay inside bounds. This tool supports two-sided and one-sided truncation.
Why does the mean shift?
Truncation removes probability mass outside the bounds. The remaining mass is renormalized, so mean/variance change.
What does Z mean?
Z=Φ(β)−Φ(α) is the probability the original normal lands inside the bounds. Smaller Z means “more extreme” truncation.
Is seeded RNG secure?
No. Seeded mode is for reproducibility only. Use Secure (CSPRNG) for security-sensitive randomness.