Just store the sum totals in an 11-element array of ints. (there are 11 possible combinations for the sum of two 6-sided dice)
int num[11];
for (int i=0; i<36000; i++) {
// ...Calculate the two die rolls randomly..
num[die1 + die2 - 2]++;
}
That should get you started...
-Fredric
Daishi
Junior Poster in Training
80 posts since Aug 2005
Reputation Points: 10
Solved Threads: 2