generate random in C# in unity code example
Example 1: how to generate random number in unity
X = Random.Range(min, max);
Example 2: unity how to generate a random number
Vector3 position = new Vector3(Random.Range(-10.0f, 10.0f), 0, Random.Range(-10.0f, 10.0f));