Randomly select an endpoint