def id_to_choice(id_num, num_choices):
    localrandom = random.Random(id_num)
choice = localrandom.randrange(num_choices)
return choice
Convert integer to a random but deterministically repeatable choice