title: Xcode: Random label generator no repeat?
body: <p>I am creating an app that has a random label generator, but I'm finding that its repeating sometimes. And I was wondering if I can take this problem right out, but I'm not sure how to? Any help would be greatly appreciated. I've provided my .h and .m files.
  Here's my .h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "MessageUI/MessageUI.h"
  #import "Social/Social.h"
  #import "Accounts/Accounts.h"
  #import &lt;iAd/iAd.h&gt;
  
  
  @interface ViewController2 : UIViewController &lt;MFMessageComposeViewControllerDelegate,    ADBannerViewDelegate&gt; {
  SLComposeViewController *mySLComposerSheet;
  //label that is being randomly generated.
  IBOutlet UILabel *label;
  
  }
  
  -(IBAction)randomButton;
  -(IBAction)randomButton2;
  -(IBAction)SendSMS:(id)sender;
  -(IBAction)PostToFacebook:(id)sender;
  - (IBAction)SendATweet:(id)sender;
  
  @end
  </code></pre>
  
  <p>Here's my .m</p>
  
  <pre><code>-(IBAction)randomButton {
  int randomText = rand() %151;
  switch (randomText) {
      case 0:
          label.text = @"1";
          break;
      case 1:
          label.text = @"2";
          break;
      case 2:
          label.text = @"3";
          break;
      case 3:
          label.text = @"4";
          break;
      case 4:
          label.text = @"5";
          break;
      case 5:
          label.text = @"6";
          break;
      case 6:
          label.text = @"7";
          break;
      case 7:
          label.text = @"";
          break;
      case 8:
          label.text = @"8";
          break;
      case 9:
          label.text = @"9";
          break;
      case 10:
          label.text = @"10";
          break;
      case 11:
          label.text = @"11";
      //ect.....
  </code></pre>
  
  <p>Thanks in advanced.</p>