简单取随机数

//取随机数
Random random=new Random();
int a=random.nextInt(3);//取0-3的随机数

posted on 2017-08-18 10:23  java羊羔  阅读(165)  评论(0编辑  收藏  举报

导航