生成1-100之间的随机数。

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

posted @ 2019-10-25 15:08  一块  阅读(5426)  评论(0编辑  收藏  举报