摘要: Math.floor(Math.random() * 7 + 1);Math.random() 生成0和1之间的随机小数Math.random() * 7 生成0和7之间的随机小数Math.random() * 7 + 1生成1和8之间的随机小数Math.floor(Math.random() *... 阅读全文
posted @ 2014-04-25 15:29 藤露 阅读(157) 评论(0) 推荐(0) 编辑