An efficient algorithm to generate random uncorrelated Euclidean distances: the random link model