Weibull Distribution Generator & Visualizer

Generate random lifetimes / failure times with Weibull(k,λ), then visualize a density histogram and PDF curve.

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 日本語 | English | Español | Français

What is a Weibull distribution?

The Weibull distribution is a standard model for lifetimes, failure times, and waiting times (x≥0).

PDF: f(x)=(k/λ)(x/λ)^(k-1)exp(-(x/λ)^k). Mean: λ·Γ(1+1/k). Variance: λ²(Γ(1+2/k)-Γ(1+1/k)²). Median: λ·(ln 2)^(1/k).

You don’t need to enter personal information to use this tool.

Presets

Quickly set common shapes (you can tweak values after applying).

Generator

Set k/λ, sample size, bins, and RNG. Then generate samples and export results.

Sample stats

Samples (first 20)


      

How to use this tool

Use this page for lifetimes, waiting times, and reliability scenarios where the failure pattern matters.

Use in 3 steps

  1. Set the shape k and scale λ using a rough lifetime scenario you can explain.
  2. Generate a sample and compare the histogram with the theoretical mean, variance, and quantiles.
  3. Change either k or λ, but not both at once, so you can separate shape effects from scale effects.

How to read the result

The scale λ stretches the horizontal axis, while the shape k changes whether mass clusters near zero or shifts away from it. This matters when you compare early-failure and wear-out behavior.

Boundary checks

Frequently asked questions

What is the difference between k and λ?
k controls the shape or failure pattern, while λ controls the overall time scale.
Why does the curve hug 0 when k is small?
For k below 1, the density becomes stronger near zero, which represents more early events or early failures.
Why might another tool give a different mean?
Different parameter conventions, units, rounding, or sample sizes can change reported summary values.
Is this a bounded probability model?
No. Weibull is for non-negative durations or magnitudes, not for values restricted to the 0–1 interval.
What should I do first on this page?
Start with one scale and compare only two shape values, such as k below 1 and k above 1.