锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线人成日本视频,日本一区视频在线观看免费,在线免费毛片http://www.aygfsteel.com/yooli88/archive/2011/01/31/343137.html榪瘋尗鍦╦ava鐨勪笘鐣岄噷榪瘋尗鍦╦ava鐨勪笘鐣岄噷Mon, 31 Jan 2011 08:57:00 GMThttp://www.aygfsteel.com/yooli88/archive/2011/01/31/343137.htmlhttp://www.aygfsteel.com/yooli88/comments/343137.htmlhttp://www.aygfsteel.com/yooli88/archive/2011/01/31/343137.html#Feedback0http://www.aygfsteel.com/yooli88/comments/commentRss/343137.htmlhttp://www.aygfsteel.com/yooli88/services/trackbacks/343137.html
鏂規硶娌℃湁紜
import java.util.*;
public class Lottery {

    public static void main(String[] args) {
        int[] data1 = {3, 5, 6, 8, 9, 15, 18, 24, 27, 30, 32};
        Random r = new Random();
        int irdm = 0;
        for(int i = 0; i < 7; i ++) {
            irdm = r.nextInt(11 - i);
            System.out.println(data1[irdm]);
            for(int j = irdm; j < 11 - i - 1; j ++) {
                data1[j] = data1[j + 1];
            }
        }
    }
}
鏂規硶娌℃湁紜涓嶇煡閬撴槸鍚﹀彲琛宲ublic class AAAAA {
        public static void main(String[] args) {

                int i = 0;
                int j = 0;
                int[] temp = new int[20];
                for (j = 0; j < temp.length; j++) {
                        temp[j] = Math.random() * 100  + 1;
                        System.out.print(temp[j] + ",";
                }
                
                HashSet hh = new HashSet();
                while (hh.size() < 7) {
                        int aa = (int) (Math.random() * 100 + 1);
                        hh.add(aa);
                }
                System.out.println(hh.size());
                Iterator ii = hh.iterator();
                while (ii.hasNext()) {
                        System.out.print(ii.next() + ",";
                }
        }

}

java浠庢寚瀹氭暟緇勪腑鍙栦笉閲嶅鐨?涓殢鏈烘暟

濡備綍鐢╦ava浠庢寚瀹氭暟緇勪腑鍙栦笉閲嶅鐨?涓殢鏈烘暟錛屼互涓嬫槸鎴戝啓鐨勪唬鐮侊紝浣嗘槸鏄湁閲嶅鐨勶紝鍝綅澶т緺璧愭暀涓涓嬪浣曚嬌鐢≧andom綾葷殑縐嶅瓙錛屽府鎴戝疄鐜頒笉閲嶅鐨勯殢鏈烘暟銆傘傘?br /> import java.util.*;
public class Lottery {

    public static void main(String[] args)
    {
        int[] data1 = {3,5,6,8,9,15,18,24,27,30,32};
        Random   r=new   Random();
        StringBuffer   str1=new   StringBuffer();
        for(int   i=0;i<6;i++)
        {
        str1.append(data1[r.nextInt(11)]);
         }
         System.out.println(str1);
   }
}


榪瘋尗鍦╦ava鐨勪笘鐣岄噷 2011-01-31 16:57 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 阜城县| 宝坻区| 绥江县| 舟山市| 斗六市| 江安县| 精河县| 镇赉县| 沙坪坝区| 木里| 铜鼓县| 湛江市| 钟山县| 吐鲁番市| 东宁县| 同心县| 澄城县| 蒲江县| 隆回县| 鱼台县| 阳西县| 商河县| 包头市| 兴海县| 美姑县| 庆元县| 徐水县| 盐边县| 晋州市| 大邑县| 达尔| 中方县| 江口县| 左权县| 来凤县| 马龙县| 湟中县| 青浦区| 丹阳市| 如东县| 安图县|