構文
Number.RandomBetween(bottom as number, top as number) as number
バージョン情報
bottom と top の間の乱数を返します。
例 1
1 と 5 の間の乱数を取得します。
使用方法
Number.RandomBetween(1, 5)
出力
2.546797
このブラウザーはサポートされなくなりました。
Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。
Number.RandomBetween(bottom as number, top as number) as number
bottom と top の間の乱数を返します。
1 と 5 の間の乱数を取得します。
使用方法
Number.RandomBetween(1, 5)
出力
2.546797