Unleash the Power of Randomness

Visualize and generate random samples from any discrete distribution with ease.

Distribution Inputs

Define your discrete distribution by entering the possible values and their corresponding probabilities.

Enter the possible outcomes, separated by commas.

Enter the probability of each outcome, corresponding to the values.

Sampling Options

Specify how many random samples you want to generate.

Generated Random Samples

Sample Distribution Visualization

Distribution of the generated samples, showing the count for each value.

Understanding Discrete Distributions

A discrete distribution describes the probability of occurrences for a set of distinct outcomes, like the numbers on a die. Each outcome has a specific probability, and all probabilities combined must equal 1. This tool helps you simulate drawing random samples from such a distribution. Enter the possible values (e.g., 1, 2, 3) and their probabilities (e.g., 0.3, 0.5, 0.2) to see the generated random samples and their distribution visually. This is useful in statistics, simulations, and understanding probabilistic events.