java 彩票
来源:互联网 发布:论网络诈骗的法律规范 编辑:程序博客网 时间:2024/04/29 12:40
import java.util.*;
class CaiPiao3{
public static void main(String [] args){
System.out.println("交钱");
Scanner key = new Scanner(System.in);
int money = key.nextInt();
getCaiPiao(money);
}
public void getCaiPiao(int money){
int zhus = money/2;
for(int i=1;i<=zhus;i++){
int [] zhu= getOneZhu();
printZhu(zhu);
}
}
public static void printZhu(int [] zhu){
for(int n=1;n<=7;n++){
System.out.print(zhu[zhu.length-n]+"\t");
}
System.out.println();
}
public static int[] getOneZhu(){
int [] longzhus = new int[36];
for(int j=0;j<longzhus.length;j++){
longzhus[j] = j+1;
}
for(int k=1;k<=7;k++){
int pos = (int)(Math.random()*(37-k));
int tmp;
tmp = longzhus[pos] ;
longzhus[pos] =longzhus[longzhus.length-k];
longzhus[longzhus.length-k]=tmp;
}
return longzhus;
}
- java 彩票
- java获取彩票数据,彩票API
- Java 彩票抽奖
- java 彩票系统
- java彩票源码
- java彩票系统
- Java作业-双色球彩票
- java 彩票走势图算法
- 彩票
- 彩票
- 彩票
- 彩票
- 彩票
- 彩票
- 彩票
- 彩票
- 彩票
- 彩票
- 自动释放池工作原理,self = [super init]和定义属性时,什么时候用 assign、retain、copy 以及它们的之间的区别?
- MySQL的Innodb缓存相关优化
- shell--读取文件
- sharesdk遇到问题
- 门户类网站性能测试分析及调优
- java 彩票
- 调试板卡笔记
- C# httppost 302 错误
- 关于dota及其他游戏的数理分析
- ThinkPHP3.2加载TabLib异常
- mysql数据库巡检脚本
- xwiki App Within Minutes 插件
- Servlet开发常见错误
- TypeError: unbound method func1() must be called with base1 instance as first argument (got nothing