Search:

Type: Posts; User: iAce

Search: Search took 0.16 seconds.

  1. Re: Dice Rolling Probability - How Do I Start It Off?

    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;...
  2. Re: Dice Rolling Probability - How Do I Start It Off?

    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?
  3. Re: Dice Rolling Probability - How Do I Start It Off?

    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...
  4. Re: Dice Rolling Probability - How Do I Start It Off?

    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...
  5. Re: Dice Rolling Probability - How Do I Start It Off?

    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...
  6. Dice Rolling Probability - How Do I Start It Off?

    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...
Results 1 to 6 of 6