probability c++ question
<p>I have to make a game of craps and towards the end, I have to do some probability.  Here is my code so far. I want it so that the loop repeats 1000 times and looks for the 'probNumb' that the user entered. I am not sure if did this right but lets say I entered the number 5. This is what I get.<br>
"Out of 1000 times, 5 was rolled 1000 times." </p>

<p>So, its not counting how many times 5 was rolled. I am not allowed to use break or continue statements, only loops and if else. </p>

<pre><code>
cout &lt&lt "What number do you want the probability of ?";
cin >> probNumb;

while (probCount &lt 1000)
{
  ranNumb= 1 + (rand() % (5 + 1));
  ranNumb2= 1 + (rand() % (5 + 1));
  ranNumbFin = ranNumb + ranNumb2;
  probCount++;

  if (ranNumbFin = probNumb)
    probNumbCount++;
}

cout &lt&lt "Out of 1000 times, " &lt&lt probNumb &lt&lt " was rolled " 
  &lt&lt probNumbCount &lt&lt "times." &lt&lt endl;
</code></pre>
