title: Instance member cannot be used on type 'ViewController'
body: <pre><code>class ViewController: UIViewController {    
  
  let fortuneArray = ["You will find true love in the summer.", "Outlook not good", "You may find great success in business soon.", "Watch out for grey cats."]
  let randomIndex = Int(arc4random_uniform(fortuneArray.count))
  
  override func viewDidLoad() {
      super.viewDidLoad()
      let randomIndex = Int(arc4random_uniform(UInt32(fortuneArray.count)))
      print("random index: ")
      print(randomIndex)
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  // actions
  @IBAction func cookiePressed(sender: AnyObject) {
      fortune.text = fortuneArray[randomIndex]
  
  }
  </code></pre>
  
  <p>I'm creating a very simple fortune telling app in Swift and I keep running into issues with <code>arc4random_uniform</code>.  Currently I'm just trying to get the app to draw a string at random but I get an error saying:</p>
  
  <blockquote>
    <p>Instance member 'fortuneArray' cannot be used on type 'ViewController'</p>
  </blockquote>
  
  <p>on the line where I am declaring the variable <code>randomIndex</code>.  I've been using google for awhile but haven't found a fix.  Hopefully someone can help, thanks!</p>
  
  <p><strong>* Update *</strong>
  Problem solved!  Thanks.</p>