title: Random number in iOS?
body: <p>How do you generate a random number when a button is clicked, and depending on that number, different actions take place.  </p>
  
  <p>I probably only need a random number from 1-10.</p>
  
  <pre><code>-(IBAction)buttonClicked{
  
  "generate the random number"
  
  if(number == 1){
  
      something happens
  }
  
  else if(number == 2){
      something else happens
  }
  
  etc
  
  }
  </code></pre>