평점 만점의 리뷰가 11,000개 이상

8만 5천명 이상의 리뷰

10만명 이상의 포럼 멤버가 선호하는 에셋

유니티에서 모더레이팅하는 모든 에셋

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
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
라이선스
파일 크기
57.5 KB
최신 버전
1.0
최신 릴리스 날짜
2019년 1월 16일
원본 Unity 버전
5.6.1
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
언어
어필리에이트 프로그램
멤버십링크 생성기어필리에이트 ID
Feedback
파트너 프로그램
협력사
USD
EUR
Copyright © 2025 Unity Technologies
모든 가격은 부가가치세를 제외한 금액입니다.
USD
EUR