摘要: 1. 伪随机数生成函数* math.random1) math.random() 返回一个在区间[0, 1)内均匀分布的伪随机实数。> = math.random()0.39438292681909> = math.random()0.783099223758612)math.random(n) n为实数,返回一个在区间[1, n]内的伪随机整数。> = math.random(6)5> = math.random(6)6> = math.random(6)2> = math.random(6.28)2> = math.random(6.28)4> 阅读全文
posted @ 2013-06-09 22:28 *tingliang* 阅读(935) 评论(0) 推荐(0) 编辑