Mathematics · Interactive tool
Random Samples
Generate entered-range integer, real or normal samples.
Your inputs
Result
Calculated output
Enter inputs to calculate.
Uniform integers include both endpoints. Real samples use a uniform fraction in [0,1). A repeated identical range produces that constant.
Normal samples use x=μ+σ sqrt(−2ln U1) cos(2πU2), with independent uniform fractions. Independent draws need not match distribution moments in a small sample.