title: Randomizing Alert view text for Objective C
body: <p>I am new to programming. I am having trouble finding out what all is wrong with this. It is an alert view that i am trying to randomize the text displayed in the message. </p>
  
  <pre><code>-(void)alert:(id)sender{
  int randomNumber;
  randomNumber = (randomNumber() %3 + 1);
  NSLog(@"%i", randomNumber);
  
  if (randomNumber == 1) {
      self.YouWin.text = [NSString stringWithFormat:@"You Win"];
  }
  else if (randomNumber == 2) {
      self.YouWin.text = [NSString stringWithFormat:@"You Lose"];
  }
  else if (randomNumber == 3) {
      self.YouWin.text = [NSString stringWithFormat:@"Tie"];
  }
  NSLog(@"%@",YouWin);
  UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Hello" message:[NSString stringWithFormat:@"%@",YouWin] delegate:self cancelButtonTitle:@"Ok" otherButtonTitles: nil];
  [alert show];
  button.hidden = YES;
  </code></pre>