Consider two sentries that are patroling on a road that is 2 miles long. They are sent to points chosen independently and at random on the road. I want to find the probability that the sentries will be less than $\frac{1}{3}$ mile apart when they reach their respective points.
I imagine two sentires $i$ and $j$, and I let $X_i$ be the random variable that represents the point $i$ is assigned to and $X_j$ be the random variable that represents the point $j$ is assigned to. Obviously, from the discussion of the problem, $X_i, X_j \sim U[0,2]$, where $0$ represents the beginning of the road and $2$ represents the end of the two miles of the road. What we need to find is $$P(|X_i-X_j| < \frac{1}{3}) = P(\frac{-1}{3} < X_j-X_j < \frac{1}{3}).$$ However, I am having some issues figuring out how to alter this problem in order to make this a probability that considers only one random variable as an input. Any suggestions on how to go about doing this?
