Continuous Uniform Distribution

A continuous random variable with follows the Uniform distribution if it is equally likely to take any value in the interval .  Formally, the Uniform distribution of a random variable is given by the PDF

\dfrac{1}{b-a} & \text{if } x \in [a, b], \
0 & \text{otherwise,}
\end{cases}$$

so that every subinterval of of the same length has the same probability.

Then, the CDF of is given by

0 & x \leq a, \
\dfrac{x-a}{b-a} & x \in (a, b), \
1 & x \geq b.
\end{cases}$$

Examples

Meeting Probability

Two bankers each arrive at the station at some uniformly random time between 5:00AM and 6:00AM. They stay exactly 5 minutes, and then leave.

Stick Cutting

You break a stick twice uniformly at random.