HOW TO SPAWN random number of objects in unity code example
Example 1: random number generator unity
int num = Random.Range(min, max);
Example 2: how to generate random number in unity
X = Random.Range(min, max);
int num = Random.Range(min, max);
X = Random.Range(min, max);