Number.RandomBetween

Number.RandomBetween(bottom as number, top as number) as number

返回 bottomtop 之间的一个随机数。

示例:

获取 1 和 5 之间的一个随机数。

使用情况:

Number.RandomBetween(1, 5)

输出:

2.546797

results matching ""

    No results matching ""