rand()
傳回亂數。
rand()
rand(1000)
語法
rand()
- returns a value of typereal
with a uniform distribution in the range [0.0, 1.0).rand(
N)
- returns a value of typereal
chosen with a uniform distribution from the set {0.0, 1.0, ..., N - 1}.
深入瞭解 語法慣例。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應