count numbers selected by randomize
Posted on 2012-09-12
Working on a keno game. have added a Autoplay with an option to stop Auto play after user defined # of times with a max of 2000.if user selects 2000 the the game will randomize 80 numbers with 20 selections for each randomize and update the results with each run. Some one asked me to add a feature to display the most popular number of the 80 being hit.
What could i use to keep track of how many times each number is selected and display the results. Preferably sorted by the highest hit number at the top?
number 1, hit 25 times
number 2, hit 35 times
number 3, hit 55 times
all the way to number 80