产生1~100之间的随机数

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

  

posted @ 2021-11-25 23:05  Inami  阅读(243)  评论(0)    收藏  举报