A geometric probability question

Find the probability of distance of two points ,which are selected in [0,a] closed interval, is less than ka $k<1$.

Find the probability of distance of two points ,which are selected in [0,a] closed interval, is less than ka $k<1$.