Rexx - randu



此方法返回 0 到 1 之間的偽隨機數。

語法

randu() 

引數

返回值

返回 0 到 1 之間的偽隨機數。

示例

/* Main program */ 
options arexx_bifs 
say randu() 

執行以上程式將得到以下結果。

輸出

0.396464774
rexx_regina.htm
廣告

© . All rights reserved.