微件:发牌概率

<script src='https://unpkg.com/mathjs@5.4.1/dist/math.js' ></script>

<script> function f11(a,b,c,A,B,C){ return math.chain(math.permutations(5,a+b+c)) .multiply(math.combinations(A,a)) .multiply(math.combinations(B,b)) .multiply(math.combinations(C,c)) .multiply(math.permutations(10,5-a-b-c)) .multiply(math.permutations(10)) .divide(math.permutations(15)) .done(); }

function f12(a1,b1,c1,a2,b2,c2,A,B,C){ return math.chain(math.permutations(5,a1+b1+c1)) .multiply(math.combinations(A,a1)) .multiply(math.combinations(B,b1)) .multiply(math.combinations(C,c1)) .multiply(math.permutations(10,5-a1-b1-c1)) .multiply(math.permutations(5,a2+b2+c2)) .multiply(math.combinations(A-a1,a2)) .multiply(math.combinations(B-b1,b2)) .multiply(math.combinations(C-c1,c2)) .multiply(math.permutations(5+a1+b1+c1,5-a2-b2-c2)) .multiply(math.permutations(5)) .divide(math.permutations(15)) .done(); } /**


function fA(up,down){ return math.permutations(down,up); }

function fC(up,down){ return math.combinations(down,up); }

    • /

var selectedServants=new Array(); var ServantsArray=new Array(); window.onload = function(){ ServantsArray=new Array() var temp=""; for(var i=0;i<ServantsArray.length;i++){ temp+="<option value=\""+ServantsArray[i][1]+"\">No."+ServantsArray[i][1]+" "+ServantsArray[i][0]+"</option>"; } document.getElementById("servantI").innerHTML+=temp; document.getElementById("servantJ").innerHTML+=temp; document.getElementById("servantK").innerHTML+=temp; }


</script>

<select id="servantI"></select> <select id="servantJ"><</select> <select id="servantK"></select>

<tbody> </tbody>
第一回合 <select></select><select></select> <select></select><select></select> <select></select><select></select> <select></select><select></select> <select></select><select></select>
第二回合 <select></select><select></select> <select></select><select></select> <select></select><select></select> <select></select><select></select> <select></select><select></select>
第三回合 <select></select><select></select> <select></select><select></select> <select></select><select></select> <select></select><select></select> <select></select><select></select>