隨筆-4  評論-4  文章-0  trackbacks-0

          package youg;

          import java.util.Date;
          import java.util.Random;

          public class hiden {
           public int rand()
           {
            int sta=1;
            
            //Date d=new Date();
            double time=System.currentTimeMillis();
            Random r=new Random();
            sta=r.nextInt((int)time%1000)%10;
            System.out.println(sta);
            return sta;
           }
           
           public static void main(String args[])
           {
            hiden h=new hiden();
            System.out.println(h.rand());
           }

          }

          posted on 2008-08-14 11:30 志遙 閱讀(251) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 班戈县| 富源县| 兴和县| 民乐县| 昭通市| 城市| 仙居县| 黄梅县| 那坡县| 吴旗县| 临夏县| 荣昌县| 昆明市| 古蔺县| 上蔡县| 开封县| 高邮市| 菏泽市| 南郑县| 仙桃市| 洮南市| 定安县| 吕梁市| 紫金县| 云南省| 翼城县| 邛崃市| 车险| 扎鲁特旗| 茶陵县| 蒲城县| 和顺县| 如东县| 齐河县| 怀化市| 菏泽市| 定襄县| 葵青区| 望谟县| 桂阳县| 济宁市|