# Permut - 指令碼與圖表函數

Permut() 傳回可以從一組 p 個項目中選取 q 個元素的排列數目。表示方式如公式：`Permut(p,q) = (p)! / (p - q)!` 選取項目的順序很重要。

語法：

Permut(p, q)

傳回的資料類型： 整數

限制：

非整數引數會被截斷。

範例與結果：

範例與結果

| 範例 | 結果 |
| --- | --- |
| 在有 8 位參賽者的 100 公尺決賽中，頒發金、銀、銅牌的可能結果有幾種？<br><br>`Permut(   8,3 )` | 傳回 336 |

## 瞭解更多資訊

* [Combin - 指令碼與圖表函數](https://help.qlik.com/zh-TW/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/combin.htm)