title: Objective-C Random Number
body: <p>I have one piece of code that is giving me some trouble and is confusing.</p>
  
  <p>Here is the piece of code...</p>
  
  <pre><code>int r = rand() % 100;
  printf("Random number: %u", r);
  </code></pre>
  
  <p>Why does it print 7 every time? According to the book it should print any number 0-100 I believe... am I wrong with this?</p>