Okay well here's what I have so far. I'm not sure if even this is correct. How do I display the number of times it matches for each sum?
import java.util.Random;
import java.util.Scanner;...
Type: Posts; User: iAce
Okay well here's what I have so far. I'm not sure if even this is correct. How do I display the number of times it matches for each sum?
import java.util.Random;
import java.util.Scanner;...
Yeah, that was a bad example. If it was only 1 roll, then it would be 100% for one combination. I think 100 rolls would be better. So, how would I code this problem?
I meant the user would enter in 1 as the number of rolls they want. Basically, it's like this:
-Ask the user to input how many times the dice will be rolled.
-Calculate the probability of each...
It's similar to what you said. I need to display the probability of how many times a combination will occur depending on how many rolls the user input.
For example, since I'm doing a 2-sided dice...
It's supposed to represent all the possible sums I could get from the dice. So the lowest possible number would be 2 and the highest would be 4.
If the sum on the dice is equal to the sum, then it...
Just a quick question on how to start off a code on this. The program is supposed to simulate tossing a pair of 2-sided dice and determining the percentage of times each possible combination of the...