Java生成1-100随机数

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

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