Math.random()取 正的区间值

//取区间 [a,b]的整数值
(int)(Math.random()*(b-a+1) + a);

posted on 2023-04-13 20:21  盗版太极  阅读(20)  评论(0)    收藏  举报

导航