随笔分类 -  Math.Random类

随机值
摘要:使用Math.random随机值 //第一种随机值写法 System.out.println(Math.random()); double a1 = Math.random()*100;//整数0-99取值 int c1 = (int)(Math.random()*100+1);//整数0-100取 阅读全文
posted @ 2022-02-18 09:57 ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ 阅读(67) 评论(0) 推荐(0)