Java生成1-100随机数

int i = (int)(Math.random()*100+1);

posted @ 2022-03-01 16:10  SimoonJia  阅读(105)  评论(0)    收藏  举报