直接调用Math里面的random即可,简单方便
int i = (int)(Math.random()*100+1);