Quantcast
Channel: Questions in topic: "choose"
Viewing all articles
Browse latest Browse all 81

Choose random from given numbers

$
0
0
Is there some function in C# like: var randomN = choose(1,5,10,15); Let`s say. I need to specify those numbers. Some simple function please. Random.Range() is not what I need. **REASON:** **I need to pick spawn area that is not too far from space station, nor too close to** **station or ship will spawn in the center of it.**

Viewing all articles
Browse latest Browse all 81

Trending Articles



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