basically the first thing it does is generating every possible combination of 9 numbers and storing it on two lists next it goes through two lists: one list is every contestant's points and the other is the point rewards for that challenge using the lists of every possible combination of 9 numbers it goes through every possible outcome of the challenge, ranks the contestants for each outcome, and figures out if they're UFE or not for that outcome it then records how many outcomes each contestants is UFE in, and divides by the total number of outcomes to get each contestant's chance of being UFE
7 years of scratch for this btw, i can code!