mardi 29 mars 2016

How can I generate a random number between 0-5 in Swift? [duplicate]

This question already has an answer here:

I have only been coding in my off time for a couple of weeks now and am creating an app with a very basic "guess how many" concept. The user will enter a number between 0-5 and the app will tell the user whether they are right or wrong.

How would I generate a number between 0-5?




Aucun commentaire:

Enregistrer un commentaire