会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
啊道的星空
博客园
首页
新随笔
联系
管理
订阅
2020年7月9日
java 生成指定范围内随机数
摘要: 闲话少叙 Random random = new Random(); // 生成10-100内的随机数 int i = random.nextInt(100 - 10 + 1) + 10; // 生成 [m,n] 的数字 int n = 10; int m = 20; int i1 = random
阅读全文
posted @ 2020-07-09 18:21 adao
阅读(1481)
评论(0)
推荐(0)
编辑
公告