P ProbLab
Tools/Random Distribution Sampler

Random Distribution Sampler

Generate N samples from a chosen distribution and inspect the histogram. Useful for building intuition about how distributions look in practice.

Setup

Advertisement

Sample summary

Histogram

Why random sampling helps

Reading about a "right-skewed" distribution doesn't stick. Sampling one yourself and looking at the histogram does. This tool is intentionally visual — adjust the parameters, click "Resample", and watch the shape change.

Who uses it

  • Educators showing the central limit theorem in action.
  • Engineers generating test data for simulation pipelines.
  • Curious learners building distribution intuition.

Limitations

  • JavaScript's Math.random is not cryptographically secure. Don't use for keys or sampling-sensitive applications.
  • For very small N, histograms are noisy and "look wrong" — increase N to see the true shape.