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

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

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