Calculating probabilities with random selection