vendredi 28 octobre 2016

How to randomly select between two numbers?

So lets say I want to randomly choose between the number 1 and number 3 (not in between, just those two numbers). How do I go about doing that? Do I just assign int a to 1, int b to 3, and then do random for int a,b?




Aucun commentaire:

Enregistrer un commentaire