I am trying to generate random floats between 1 and 100, but i keep getting erros everytime i so my set up, currently i am trying:
func returnDbl ()-> Double {
var randNum = Double(Float(arc4random(101) % 5))
return randNum
}
print(returnDbl())
but to no avail, would someone point me in the right direction>
Aucun commentaire:
Enregistrer un commentaire