锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美激情www,男人的天堂在线视频,国产福利小视频在线观看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
鏂規(guī)硶娌℃湁紜
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];
            }
        }
    }
}
鏂規(guī)硶娌℃湁紜涓嶇煡閬撴槸鍚﹀彲琛宲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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 宣汉县| 南康市| 宜丰县| 上犹县| 岳西县| 重庆市| 雅江县| 吴旗县| 余江县| 邵阳市| 威远县| 海口市| 仁怀市| 阳西县| 宜黄县| 当涂县| 普陀区| 保定市| 东乌| 莎车县| 平远县| 南昌县| 依安县| 吉隆县| 清远市| 同江市| 晋宁县| 六安市| 铜山县| 甘谷县| 小金县| 扎赉特旗| 武功县| 临安市| 广南县| 屯门区| 响水县| 七台河市| 沙洋县| 山阳县| 林芝县|