lundi 26 septembre 2016

Random Number Generator (with parameters) in Swift 3

I am trying to create a random number generator in swift, however I can't seem to find a way to make a random number generator with a given parameter. I am looking with such I can give it a parameter, say "5" and it will generate a random number between 0 and 5.




Aucun commentaire:

Enregistrer un commentaire