'Choose a random value from supplied list. If hash_value is passed
in then every request with that same hash_value would produce the same
choice from the supplied list.'

def choose_one(self, lst, hash_value=None):

    if (hash_value is None):
        return random.choice(lst)
    if (not isinstance(hash_value, int)):
        as_hex = hashlib.md5(hash_value).hexdigest()
        hash_value = int(as_hex, 16)
    random_index = (hash_value % len(lst))
    return lst[random_index]
