P
popstar426
Guest
Hi,
I am trying to make a program where you input a set of die (say 2d6) and have it output every possible combination of those dice (1-1,1-2,1-3,1-4,1-5,1-6,2-1 and so on). I would also like it to do things such as totaling the sum of both the dice and give it the ability to tally certain values (such as numbers divisible by 2). It doesn't matter how I input the dice or how the results are outputted. How would I go about achieving this.
I am trying to make a program where you input a set of die (say 2d6) and have it output every possible combination of those dice (1-1,1-2,1-3,1-4,1-5,1-6,2-1 and so on). I would also like it to do things such as totaling the sum of both the dice and give it the ability to tally certain values (such as numbers divisible by 2). It doesn't matter how I input the dice or how the results are outputted. How would I go about achieving this.