Sunday, October 4, 2020

Messing with Python on the TI Nspire CX CAS

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:

No comments:

Post a Comment

More Heads or Tails?

Over the course of 100 or 1,000 or 10,000 flips, will there be more heads or more tails? And once one side of the coin takes the lead, do th...