RANDBETWEEN

傳回兩個值 (含首尾) 之間的均勻整數亂數。

使用範本

RANDBETWEEN(1,10)

RANDBETWEEN(A2,A3)

語法

RANDBETWEEN(low, high)

  • 底部 隨機範圍的底端。

  • 上方 隨機範圍的上方。

附註

  • Values with decimal parts may be used for 底部 and/or 上方 這種will cause the least and greatest possible values to be the next integer greater than 底部 and/or the next integer less than 上方 , 。

另請參閱

RAND: 傳回 0 與 1 之間的亂數 (含 0 但不含 1)。

範例

true
造訪學習中心

您有在公司或學校使用 Google 文件等 Google 產品嗎?快來試試實用的秘訣、教學課程和範本,瞭解如何在不安裝 Office 的情況下處理 Office 檔案、建立動態專案計劃和小組日曆、自動整理收件匣及進行其他作業。

搜尋
清除搜尋內容
關閉搜尋
主選單
17148256754683279891
true
搜尋說明中心
true
true
true
true
true
35
false
false