Re: Dice Program



On Feb 5, 11:34 pm, ajts...@xxxxxxxx wrote:
I wrote a dice program that calculates the sums of two dice and shows the
frequency that they appear. I know there are 36 possible combinations for
these sums to appear. Does it matter if would roll the dice 100 times or
6000 times. Will the fraction display change? If so how would I express that
mathmatically? My other question is I declared a Random random = new
Random() in main and want to pass it to a static void method.So that way I
dont create a new object every time method is called. I thought I had it
figured out but there was same result when I comented Random random = new
Random() out. I know I need to pass in the object to my method but not sure
how. My code is as follows:

<snip>

Having two dice with 6 sides (6 possible numbers each) how do you get
36 combinations?
I can find ONLY 21 different combinations and ONLY 11 different sums.
So the probability of ANY particular combination is 1 in 21 and
probability of any particular sum is 1 in 11.

Most likely your assignment is to try to prove (or disprove) your (or
my) probability assumptions.

Probability (as far as I remember from the long gone times when I was
a student) is something that works 100% ONLY in infinity, i.e. the
fewer attempts you make - the less likely you are to be close to what
probability is predicting.
.



Relevant Pages

  • Quantum Gravity 343.3: MIT and National Security Agency USA Explore Sums and Differences and Their S
    ... Yufei Zhao of MIT in "Subsets ... characterized by the number of missing sums and differences," arXiv: ... The size of S resembles a binomial probability distribution. ... Interactions and also to the 5th Interaction of Repulsion and the fact ...
    (sci.physics)
  • Re: Probability question
    ... What is the probability that the sum of the two dice is the same on ... both rolls? ... (some sums appear more than once to make points all equally likely). ...
    (sci.math)
  • Re: Probability question
    ... What is the probability that the sum of the two dice is the same on ... (some sums appear more than once to make points all equally likely). ... this is the probability of the same outcome on both rolls. ...
    (sci.math)
  • Re: Rearrangements of 1,2,...,N
    ... in such a way that the sums of consecutive terms are prime numbers? ... with alternate prime sums 2n+1 and 2n-1. ... Since we don't even know if there are infinitely twin primes at all, ... probability ~1/)^n so that it is very likely that at least ...
    (sci.math)
  • Re: probability
    ... probability for those sums, all you need to do is a histogram. ... > belongs to a string consisting of ones. ... Prev by Date: ...
    (comp.soft-sys.matlab)