title: Setting max and min values for creating a random number
body: <p>I am trying to generate random numbers between 2 and 11, here is my code:</p>
  
  <pre><code>srand(time(NULL));
  
  int card;
  card = rand() % 11 + 2;
  </code></pre>
  
  <p>However, currently my code is creating numbers from 2-12. How could I solve this so that it creates numbers from 2-11?</p>