If I have two players that are about to engage in a head to head competition, how do I simulate a winner based only on win percentage?
One idea I had was to create a "weighted winning pool" where I add the two percentages and then randomly pick a number in that pool. If it's in the percentage range of a team then that team wins.
e.g. 100% and 100% =200. If the random number is less than 100 then team A wins, if not then team b wins
e.g. #2 100% and 50% = 150. If the random number is less than 100 then team A wins if not team B wins.
Would this work or is there a more accepted way of doing this?
Thanks in advance.