'Given a collection of handlers or destinations, return one item from the collection at random.'

def _get_single_item(self, collection, index=None):

    if (len(collection) == 1):
        return collection[0]
    elif (index is None):
        return random.choice(collection)
    else:
        return collection[(index % len(collection))]
