美文网首页让前端飞Web前端之路
javascript 双色球选号器

javascript 双色球选号器

作者: 2o壹9 | 来源:发表于2019-11-05 18:35 被阅读0次

    //随机生成号码vara=["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33"];varb=["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16"];function sendNum(arr,arr2){

        varx_arr=arr.slice(0);

        varp_arr=new Array();   

        for(vari=0; i<6; i++){

            if(x_arr.length>0){

                varar=Math.floor(Math.random()*x_arr.length);           

                p_arr.push(x_arr[ar]);

                x_arr.splice(ar,1);

            }else{

                break;

            }                       

        }

        p_arr.sort();

        varb1=arr2[Math.floor(Math.random()*arr2.length)];

        document.getElementById("zhong_1000wan").innerText+=p_arr.join(" ")+" | "+b1+"\n";

    }

    调用

    随机选号

    相关文章

      网友评论

        本文标题:javascript 双色球选号器

        本文链接:https://www.haomeiwen.com/subject/vayebctx.html