This is a simple GET form to illustrate the mechanism of CGI. This performs a simple simulation of the central limit theorem by allowing the user to select a distribution, the sample size, the number of repetitions and the statistic of interest.

The script for processing the form is available here. It generates NumRep samples from the specified distribution, each of size n. Then it determines whether the user wants a numerical summary (summary) and/or a graphical summary.

InputsOutputs
Distribution
Sample size
Statistic
Number of iterations
Histogram
Summary