- or download this
(41/92)*(35/91)*(34/90)
- or download this
(#red * (#red-1) * ... (#red-x1+1))
* (#green * (#green-1) * ... (#green-x2+1) * ...
/ ( total * (total-1) * (total-2) * ... )
- or download this
(x1+x2+x3+ ...)! / (x1! * x2! * x3! * ... )
- or download this
use List::Util 'sum';
...
[8,8,3,1,5,0,0] );
## output: 0.000397344651946416
- or download this
(41/92)*(35/92)*(35/92)
- or download this
(#red/total)^x1 * (#green/total)^x2 * ...
- or download this
(x1+x2+x3+ ...)! / (x1! * x2! * x3! * ... )
- or download this
use List::Util 'sum';
...
[8,8,3,1,5,0,0] );
## output: 0.000397344401565931