Add unit_choice function for choosing amongst alternatives based on probabilities.