取一定范围的随机数

Math.random() * (n - m) + m; 可以取n到m的随机数

posted @ 2013-07-08 09:42  HughTan  阅读(224)  评论(0)    收藏  举报