I have an array of area codes and I am trying store a random element from the array in a variable and I get an error "instance member 'areaCodes' can not be used on type 'ViewController' ". Any suggestions?
var areaCodes = [209, 213, 310, 323, 408, 415]
var firstThree = areaCodes[Int(arc4random_uniform(UInt32(areaCodes.count)))]