Number.RandomBetween

構文

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

バージョン情報

bottomtop の間の乱数を返します。

例 1

1 と 5 の間の乱数を取得します。

使用方法

Number.RandomBetween(1, 5)

出力

2.546797