Virtual sports software calculates all potential outcomes of a match or race and then a random number generator (RNG) is used to randomly select a result.