use*_*101 5 random lua
我正在尝试使用 lua 生成一个随机数,但它只是吐出最低值。例如,如果我运行:
x = math.random(17,41) print(x)
它返回:
17
怎么了?
小智 0
你播种了 PRNG 吗?
例如,math.randomseed(os.time())
math.randomseed(os.time())
归档时间:
12 年,6 月 前
查看次数:
6744 次
最近记录: