Java实用小知识点

1.求[a,b]范围内的随机数:

(int)(Math.random() * (b - a + 1)) + a;
posted @ 2023-04-08 11:59  LiangXin_Alex  阅读(14)  评论(0)    收藏  举报