get random in array unity code example
Example 1: unity random number
Random.Range(-10.0f, 10.0f);
Example 2: how to generate random number in unity
X = Random.Range(min, max);
Random.Range(-10.0f, 10.0f);
X = Random.Range(min, max);