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

Now that @TICalculators has introduced a sweet Python implementation on the Nspire, I created the script there:

No comments:

Post a Comment

Squares in p5.js