java知识盲点

生成随机数:

  Random r=new Random();

  int t=   r.nextInt(5);

t是一个0-5的随机数

原文地址:https://www.cnblogs.com/fatfatdachao/p/3831041.html