title: printing int with specified nr of digits
body: <p>I am trying to print out a 5 digit number as follows:</p>
  
  <pre><code>int rdmNr = arc4random()%100000;
  NSLog(@"%i",rdmNr);
  </code></pre>
  
  <p>I always would like to have 5 digit numbers. Example outputs should be:</p>
  
  <pre><code>00001
  10544
  00555
  78801
  </code></pre>
  
  <p>But with the previous code I would also get 1 or 555 without 0s. I also tried %5i, but the I just get more white spaces.</p>