I have 5 numbers which are 1, 2, 3, 4 and 5.
Number 1 has a 80% chance of occurring. Number 2 has a 10% chance of occurring. Number 3 has a 8.5% chance. Number 4 has a 1% chance and Number 5 has a 0.5% chance.
What formula do I need to randomly choose one of my numbers (1, 2, 3, 4 or 5) based on the likelihood of them occurring?
Bookmarks