函数名

rnd(begin,end)

函数介绍

方法名称:生成随机数

参数说明:
开始数和结束数必须是整数


返回值:返回生成的随机整数

函数例子

local r = rnd(-5,5)

print("rnd:"..r)