Given: parent random variable $X \sim \text{Uniform}(0,2)$ with pdf $f(x)$:

Order Statistics
A more general framework for solving such problems is to use order statistics. In particular, given a random sample of size $n$ drawn on parent $X$, the joint pdf of the sample minimum (the $1^{\text{st}}$ order statistic) and sample maximum (the $n^{\text{th}}$ order statistic), say $g(x_1, x_n)$ is:

where I am using the OrderStat function from the mathStatica package for Mathematica to automate the mechanics. We could just as easily find the joint pdf of the $2^{\text{nd}}$ and $n^{\text{th}}$ order statistics in the same way, or indeed any combination of 3 or more such ordered variables.
In this instance, we seek $P(X_n - X_1 < \frac14)$:

When the sample size $n = 3$, this is equal to $\frac{11}{256}$.
Notes
- The
Prob function used above is also from mathStatica. As disclosure, I should add that I am one of the authors.