random range in unity code example
Example 1: random.range unity
// returns 0 - 9
Random.Range(0, 10)
Example 2: unity random range
Random.Range(-10.0f, 10.0f);
// returns 0 - 9
Random.Range(0, 10)
Random.Range(-10.0f, 10.0f);