I'm making a dice simulation program, and I'm using a for loop to count the number of rolls up to 10,000. However, the program outputs a total number of rolls that are way less than 10,000 (~1,500). Can anybody help me figure out whats wrong?
int die1Value; // Value of the first die
int die2Value; // Value of the second die
int count = 0; // Total number of dice rolls
int snakeEyes = 0; // Number of snake eyes rolls
int twos = 0; // Number of double two rolls
int threes = 0; // Number of double three rolls
int fours = 0; // Number of double four rolls
int fives = 0; // Number of double five rolls
int sixes = 0; // Number of double six rolls
for (count = 0; count<10000; count++){
int min= 1;
int max= 6;
die1Value = generator.nextInt((max - min) + 1) + min;
die2Value = generator.nextInt((max - min) + 1) + min;
if (die1Value == die2Value){
if (die1Value==1) {
snakeEyes++;}
else if (die1Value==2) {
twos++;}
else if (die1Value==3) {
threes++;}
else if (die1Value==4) {
fours++;}
else if (die1Value==5) {
fives++;}
else if (die1Value==6) {
sixes++;}
count++;
}
}