I want to create an array of random numbers (Int, Int32)
I tried the following:
map(1...1000) { arc4random() }
but it returns the following error:
error: type 'ClosedInterval<T>' does not conform to protocol 'SequenceType'
What I'm doing wrong?
Aucun commentaire:
Enregistrer un commentaire