How and/or why is it impossible?JayWalker said:What are you trying to say?
The Answer is Here:
[>_ is greater or equal to]
P(<45) = 1 - P(>_45)
= 1 -[ P(Getting a 45) + P(Getting a 46) + ... +P(Getting a 50)
It is impossible to get a sum of 46, 47, 48 and 49,
HENCE
= 1 - [(5,5 + 4,5) + (5,5 + 5,4) + (5,5 + 5,5)
= 1 - [1/16 + 1/16 + 1/16]
= 1 - [3/16]
= 13/16
That is the answer that I got and my tutor agrees.. Dunno could be wrong.. general concensus on this board if that 1029 something answer...
::SHRUG::
100% correctidontgetit said:First part is 11/36, second is 1/9 and third (clenches teeth) is 1291/1296
well i guess i was way off.....it was sumthing outta 72...hmmm...and i thought that was an easy question....never againmizz_smee said:thats what i got two but i don't think it was right
it looked wrong
Random rand = new Random();
Random extraRandom = new Random();
public void run()
{
int lessThan45 = 0, theOtherOne = 0;
int score1 = 0, score2 = 0;
for(int i = 0; i < 1000000000; i++)
{
score1 = haveTurn();
score2 = haveTurn();
if(score1 + score2 < 45)
lessThan45++;
else
theOtherOne++;
if(i%10000000==0)
{
rand = new Random(extraRandom.Next());
}
}
double ratio = lessThan45 / 1000000000.0d;
Console.WriteLine(ratio);
}
public int haveTurn()
{
return rollDice() * rollDice();
}
public int rollDice()
{
return rand.Next(0, 6); // this gives us 0 through 5
}