引用 | 編輯
PeterPan
2005-02-01 22:34 |
樓主
|
||
x0
到數位男女有一段時間了,可是都沒有PO範例或教學,不甘寂寞的我就從這篇開始好了。如有錯誤請不吝告知!!隨機挑選數字﹝38選6﹞public class Test{ public static void main(String args[])throws java.io.IOException{ int temp; int i[]=new int; i=(int)((Math.random()*38)+1); //選出第一個號碼 for(int j=1;j<6;j++){ //選另外五個號碼 do{ .. 訪客只能看到部份內容,免費 加入會員 x0
|