the probability density function of the distance D between two
adjacent points in a set of k uniformly distributed points over [0, T] is:
fD(d) = (k/T) * (1-d/T)^(k-1) - (1/T)*(d/T)^(k-1)

could you proof this ?