怎么产生一个随机数

int r=(int)(Math.random()*10);

原文地址:https://www.cnblogs.com/hais/p/4116419.html