Unity logo
キャンセル
カート
アプリケーション
Sell Assets

11,000 種類を超える 5 つ星アセット

8.5 万人以上の顧客による評価

10 万人を超えるフォーラムメンバーが支持

すべてのアセットを Unity が審査済み

1/5
Have you ever tried to generate a random number by Random.Range but had no idea how to exclude some values you don't need? Well, here comes your solution!

The most straightforward reason you'd want to use our functions is when you simply need to generate a random number between "1" and "10", but don't want "7" to appear.

Or between "-10" and "10", but don't want "-1", "0" and "3" (and just as many as you want!) to come as a result.

Or between "0" and "1000", but don't want anything between "100" and "900".

Seems quite simple, but in fact it has a plenty of uses!


Included functions:

- RandomExclude.RandomInt (int, int, int): You generate a random number greater than or equal to the first int and smaller than or equal to the second one, while excluding the third one;

- RandomExclude.RandomInt (int, int, List (int)): You generate a random number greater than or equal to the first int and smaller than or equal to the second one, while excluding all the ints included in the list;

- RandomExclude.RandomInt (int, int, Vector2): You generate a random number greater than or equal to the first int and smaller than or equal to the second one, while excluding all values bigger than or equal to the Vector2.x and smaller than or equal to the Vector2.y;

- RandomExclude.RandomInt (int, int, List (Vector2)): You generate a random number greater than or equal to the first int and smaller than or equal to the second one, while excluding all the intervals specified by the Vectors in the same way as in the (int, int, Vector2) function.

Random Exclude

(評価数が不足しています)
5 users have favourite this asset
(5)
$4.99
シート
1
更新された価格と消費税/VAT はチェックアウト時に計算
払い戻しポリシー
このアセットは Unity アセットストアの払い戻しポリシーの対象です。詳細については、EULA のセクション 2.9.3 を参照してください。
以下で安全にチェックアウト:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
ライセンス
ファイルサイズ
57.5 KB
最新バージョン
1.0
最新リリース日
2019年1月16日
オリジナルの Unity バージョン
5.6.1
サポート
サイトを訪問
高品質なアセット
11,000 種類を超える 5 つ星アセット
信頼がある
8.5 万人以上の顧客による評価
コミュニティが支持
10 万人以上のフォーラムメンバーが支持
Unity logo
言語選択
フィードバック
パートナープログラム
パートナー
USD
EUR
Copyright © 2025 Unity Technologies
全ての表示価格には消費税は含まれていません
USD
EUR