title: xcode random number generator
body: <p>i am building an app that shows a random facebook profile picture but do not know how to make the profile id a random number. I can obviously change it randomly in the code but need it to be random. It is the second NSString down that i need to be random. ANy help would be much appreciated!</p>
  
  <pre><code>- (IBAction) nextImagePush {
      NSString *prefix = @"http://graph.facebook.com/";
      NSString *profileId = @"517418970";
      NSString *suffix = @"/picture?type=large";
      NSString* url= [NSString stringWithFormat:@"%@%@%@", prefix, profileId, suffix];
      UIImage *img = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:url]]];
      [imageView setImage:img];
  </code></pre>