Implemented random_location()