彩票一次10块钱

var arr1:Array=[];
var arr2:Array=[];
var arr3:Array=[];
var arr4:Array=[];
var arr5:Array=[];
var arr:Array=[];
var ar:Array=[];
var n:int;
var m:int;


while (ar.length <15) {
    m=Math.random()*15+1;
    if (ar.indexOf(m)==-1) {
        ar.push(m);
    }

}
while (arr.length <30) {
    n=Math.random()*33+1;
    if (arr.indexOf(n)==-1) {
        arr.push(n);

        if (arr1.length<6) {
            arr1.push(n);
            arr1=arr1.sort(Array.NUMERIC);
        } else if (arr2.length <6) {
            arr2.push(n);
            arr2=arr2.sort(Array.NUMERIC);
        } else if (arr3.length <6) {
            arr3.push(n);
            arr3=arr3.sort(Array.NUMERIC);
        } else if (arr4.length <6) {
            arr4.push(n);
            arr4=arr4.sort(Array.NUMERIC);
        } else if (arr5.length <6) {
            arr5.push(n);
            arr5=arr5.sort(Array.NUMERIC);
        }
    }
}
trace(arr1+"-"+ar[0]);
trace(arr2+"-"+ar[1]);
trace(arr3+"-"+ar[2]);
trace(arr4+"-"+ar[3]);
trace(arr5+"-"+ar[4]);

 

posted on 2019-01-23 16:29  zqiang0803  阅读(141)  评论(0编辑  收藏  举报

导航