Count successes, double for max value

Count successes, double for max value

Return to topic list

Fri May 11 18:28:12 2018   by   Ciarlatano
Hello!
I'm looking for help, I'm trying to write a program to calculate the probability of this:

roll Nd6, count the number of dice that show a 5+.
If it rolls 6 (or sometimes 5 and 6) counts 2 successes instead of 1.

I can't seem to wrap my head around the problem :(
 
Sat May 12 15:05:56 2018   by   Torben
The simplest way to let 5s count as 1 and 6s count as 2 is to use the choose operator:

sum N#choose{0,0,0,0,1,2}




 
Sat May 12 18:39:10 2018   by   Ciarlatano
I'll try to write something following your advice!

Thank you very much
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list