怎樣可Generate 一個 介於 0-9999 的 Random 數 ? |
|
aaronkuok
一般會員 發表:5 回覆:1 積分:1 註冊:2002-03-11 發送簡訊給我 |
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
|
anderslee
初階會員 發表:2 回覆:32 積分:26 註冊:2002-06-03 發送簡訊給我 |
function Random [ ( Range: Integer) ];
Description
Random returns a random number within the range 0 <= X < Range. If Range is not specified, the result is a real-type random number within the range 0 <= X < 1. 即是說要一個 0..9999 的亂數
只要 MyNumber := Random[10000]; 就可以了!!!!!!!!!!!!!!!!!
|
DraculaCwg
一般會員 發表:1 回覆:19 積分:4 註冊:2002-03-13 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |