get random integer unity code example
Example 1: random.range unity
// returns 0 - 9
Random.Range(0, 10)
Example 2: how to generate random number in unity
X = Random.Range(min, max);
// returns 0 - 9
Random.Range(0, 10)
X = Random.Range(min, max);