Add ran_distance