跳到主要内容

math.random_real

随机生成一个区间内的浮点数

声明

float math.random_real(float from, float to)

参数

参数名描述
from起始值
to结束值

返回值

随机浮点数

使用方式

返回文档