取一定范围的随机数

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

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