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

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

原文地址:https://www.cnblogs.com/wangffeng293/p/11738113.html