This uniform distribution calculator will help you quickly compute probabilities and statistics for a specified range of values.

## Uniform Distribution Calculator

### How The Calculator Works

This calculator determines the mean and variance of the uniform distribution given the minimum value (a) and the maximum value (b). The uniform distribution is a type of probability distribution in which all outcomes are equally likely.

### How To Use The Calculator

To use the calculator, enter the minimum value (a) and the maximum value (b) for the uniform distribution. These values define the lower and upper bounds of the range of possible outcomes. After entering these values, click the “Calculate” button.

The calculator will then display the mean and variance of the uniform distribution. The mean is calculated as `(a + b) / 2`

, and the variance is calculated as `((b - a) ^ 2) / 12`

.

### Limitations

The calculator requires that the maximum value is greater than the minimum value. If you input a maximum value less than or equal to the minimum value, it will alert you to enter valid values. Also, the calculator does not handle large numbers or extremely precise decimal values beyond standard floating-point accuracy in JavaScript.