jeudi 26 octobre 2017

Randomly choose between calling two methods

I am creating a math game for my son that follows a story. I have two methods that will present him with a question. The first is named subtraction and second is named addition. Currently I just call a method at a certain point in the story, but I would prefer to randomly chose either the subtraction or addition method so it is less predictable.




Aucun commentaire:

Enregistrer un commentaire