Add random_distance_matrix function

Useful utility that I used while testing performance, so thought it'd be worth adding to the distance module.