彩票随机数代码

ublic class 随机数 {

    public static void main(String[] args) {
        for(int s=1;s<=7;s++){
        int x=(int)(Math.random()*36);
        if(x!=0){
            
        
        
     
               System.out.print(" "+x);
        }
        }
           }
}

 

posted @ 2015-12-06 19:28  琦仔  阅读(293)  评论(0编辑  收藏  举报