Refactor all_possible_outcomes_of_multiple_trials to consider variable