public GameObject[] objects;
public Transform spawn;
private void Awake()
{
foreach(var obj in objects)
{
var randomX = UnityEngine.Random.Range(-10, 10);
var randomZ = UnityEngine.Random.Range(-10, 10);
obj.transform.position = new Vector3(randomX, 0, randomZ);
}
}