def METHOD_NAME(org_pid):
    """Return random location for an organisation pid."""
    results = LocationsSearch() \
        .filter('term', organisation__pid=org_pid) \
        .source('pid')
    locations = [location.pid for location in results.scan()]
    return next(iter(locations or []), None)