Raffle numbers are issued when the cat is clicked. Click on the Tickets button to change how many tickts The program uses two different algorithms to find if any of the tickets are a match. You can see how much faster a binary search can be by comparing the number of tries it takes to find the winning ticket.
By Milton Watts Olympus High School Computer Science Binary search requires that the list of items be in order. It starts in the middle and discards the half that does not contain the results and then repeats with the remaining items. It is more complex, but for longer lists the time savings is worth the extra effort.