Uniform Distribution Sample Generator

    Uniform Distribution Sample Generator

    Generate random samples from a Uniform distribution defined over the interval \([a, b]\). Each sample is computed using: $$ x = a + (b-a) \, U, $$ where \(U\) is uniformly distributed over \([0,1]\).

    * Enter the minimum value \(a\), maximum value \(b\) (with \(a < b\)), and the desired sample size.

    Step 1: Enter Parameters

    e.g., 0

    e.g., 10 (must be greater than \(a\))

    e.g., 1000

    Samples are generated using the formula: $$ x = a + (b-a) \, U, $$ where \(U\) is a uniform random variable on \([0,1]\).

    Related Calculators