Combin() 會傳回從一組 p 個項目中挑選 q 個元素的可能組合數目。由以下公式表示:Combin(p,q) = p! / q!(p-q)! 選取項目的順序並不重要。
Syntax:
Combin(p, q)
Return data type: 整數
Limitations:
非整數引數會被截斷。
Examples and results:
從總共 35 個樂透數字中挑選 7 個數字的可能組合有幾個?
Combin( 35,7 )