title: C / Generate a random number between 1 to 4 leaving 3 out with arc4random( )?
body: <p>I have </p>
  
  <pre><code>int y = (arc4random()%4)+1;
  </code></pre>
  
  <p>So it generates a random number from 1 to 4. </p>
  
  <p>I wanted to ask if there's a way to leave number 3 out so only numbers 1, 2 and 4 have a chance to get generated.</p>
  
  <p>Thank you!</p>