title: How do I simulate 3000 dice rolls and count the number of times doubles are rolled? JAVA
body: <p>I'm new to the programming world so I'd deeply appreciate if any of you could help me become better at this. My goal for this program is to simulate 3000 dice rolls and count the number of times doubles are rolled for each of the different possible pairs of doubles using a while loop. The results should be printed out in a dialog box. </p>
  
  <pre><code>   Random random;
     random = new Random();
     diceRolls = 1;
     snakeEyes = 1;
     doubleTwos = 1;
     doubleThrees = 1;
     doubleFours = 1;
     doubleFives = 1;
     doubleSixes = 1;
  
  
     while (diceRolls &lt;= finalDiceRoll) {
         int diceRolls = 1;
         int die1 = random.nextInt(6) + 1;
         int die2 = random.nextInt(6) + 1;
  
  
         if (die1 == 1 &amp;&amp; die2 == 1){
             //snakeEyes = snakeEyes + 1;    
             snakeEyes++;
  
         }
         else if (die1 == 2 &amp;&amp; die2 == 2 ) {
             doubleTwos++;
         }
         else if (die1 == 3 &amp;&amp; die2 == 3) {
             doubleThrees++;
         }
         else if (die1 == 4 &amp;&amp; die2 == 4) {
             doubleFours++;
         }
         else if (die1 == 5 &amp;&amp; die2 == 5) {
             doubleFives++;
         }
         else if (die1 == 6 &amp;&amp; die2 == 6) {
             doubleSixes++;
         }
         JOptionPane.showMessageDialog (null, "You rolled snake eyes " + snakeEyes + " times\nYou rolled double twos " + doubleTwos + " times\nYou"
                                       + " rolled double threes " + doubleThrees + " times\nYou rolled double fours " + doubleFours + " times\nYou"
                                       + " rolled double fives " + doubleFives + " times\nYou rolled double sixes " + doubleSixes + " times");
  
  }
  </code></pre>
  
  <p>The issue i'm having here is that the results i'm getting from the program don't seem "plausible". For example, out of 3000 dice rolls, I get 1 pair of each double. What am I doing wrong?</p>