i\'ve been trying to create a code to generate random names. Here it is
import UIKit let arrayOfNames: [String] = [\"Giovanni\", \"Simone\", \"Francesco\",
You should use an Int to access an array by index
Int
Replace this
var casual1 = arc4random_uniform(7) var casual2 = arc4random_uniform(7)
with this
var casual1 = Int(arc4random_uniform(7)) var casual2 = Int(arc4random_uniform(7))