title: picking rand() number from 1-6
body: <p>I have a simple problem here but no clue how to fix this! I am trying to create a number generator but I only want it to pick a random number from 1-6. No zeros! This question was marked a dup but it shouldn't be because this is <em>C++</em> NOT <em>C</em>: </p>
  
  <pre><code>srand(static_cast&lt;unsigned int&gt;(time(0)));
  int dice = rand()%6;
  </code></pre>