A reverse raffle is where you purchase a raffle ticket, and all the tickets are placed in a large bucket, and the last ticket pulled out is the winner.
I used to do a variation of a reverse raffle for grading purposes. I would number my groups, say, 1 through 8, and then randomly choose numbers on the Nspire until only one number was left. My twist was that if a number was chosen, if it is still in play, you remove it. If the number has been removed, put the number back in play.
I wrote a nice python script to do this in Trinket.io
Now that @TICalculators has introduced a sweet Python implementation on the Nspire, I created the script there:
@TICalculators @T3Learns Messing around with my reverse raffle #Python program in the TI-Nspire CX CAS Premium Teacher Software.
— Steve Phelps (@MathTechCoach) September 26, 2020
Rules: in list of ints 0 to n, pick random int 0 to n. If n is in list, remove it. If not, put it back in. How long until list is empty? pic.twitter.com/m9lru6hHsA
— Steve Phelps (@MathTechCoach) September 26, 2020
— Steve Phelps (@MathTechCoach) September 26, 2020
No comments:
Post a Comment