round 不是简单四舍五入,random 怎么取整数——两个易错点。
Math.random()
(int)(Math.random() * 100) + 1
(int)(Math.random() * 区间长度) + 起始值
Math.exp(1)
Math.log10(100)
Math.hypot(3, 4)