Two points are chosen at random within a sphere of radius $r$. How to calculate the probability that the distance of these two points is $< d$?
My first approach was to divide the volume of a sphere with radius d by a sphere with radius r. But it does not seem to work, at least not for $d > r$.
$$P = \frac{ 4/3 \pi d ^3}{ 4/3 \pi r ^ 3 }\tag{?}$$
Any help would be hugely appreciated.