隨筆-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 志遙 閱讀(255) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 柘荣县| 宜州市| 永登县| 五指山市| 德江县| 稻城县| 潜山县| 杭锦后旗| 陇南市| 肇源县| 兴山县| 孟州市| 仲巴县| 基隆市| 竹北市| 乐东| 板桥市| 怀集县| 天峨县| 贵港市| 南漳县| 赤城县| 白沙| 盈江县| 中山市| 台安县| 克拉玛依市| 平遥县| 尖扎县| 岑巩县| 彰武县| 自贡市| 石楼县| 上林县| 宜兰县| 磐石市| 闽侯县| 拉萨市| 绿春县| 卓尼县| 阳高县|