会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
╄承诺、带给的伤痛—
博客园
首页
新随笔
联系
订阅
管理
2016年5月12日
java 随机数 彩票生成练习
摘要: int[] arr =new int[6]; for (int i=0;i<6;i++) { Random r= new Random(); arr[i]=r.nextInt(36)+1; for (int j=0;j<i;j++) { if(arr[i]==arr[j]) { i--; break
阅读全文
posted @ 2016-05-12 19:49 ╄承诺、带给的伤痛—
阅读(424)
评论(0)
推荐(0)
公告