Implement random_location