会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
木子李和三点水
博客园
首页
新随笔
联系
订阅
管理
2020年7月6日
使用Math.Random()产生一个指定范围的随机数
摘要: 指定范围[min,max] Math.random()*(max-min)+(min); public class TestRandom { public static void main(String[] args) { //指定[1000,9999]内随机数 //min=1000,max=999
阅读全文
posted @ 2020-07-06 20:58 木子李和三点水
阅读(4194)
评论(0)
推荐(0)
编辑
公告