Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Random number chosen except one

$
0
0
With Random.Range (0,10) a number between 0 and 10 is randomly chosen.
Now I want to have a random number between 0 and 10 except one specific number, for example 5.
So only from the numbers 0,1,2,3,4,6,7,8 and 9 one number is randomly chosen.

Does anybody know how to do that?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>