Let $x$ and $y$ be uniformly distributed, independent random variables on $[0,1]$. What is the probability that the distance between $x$ and $y$ is less than $1/2$?
My continuous probability knowledge is very slim. I know that $P(x\leq \frac{1}{2})=\frac{1}{2}$, but I don't know how to work in the $y$. I would like to see an answer involving integrals, even if its not necessary, so I can try I pick up some of this continuous probability stuff.