using UnityEngine;
public class SpawnObject : MonoBehaviour
{
public GameObject[] objects;
void Start()
{
int rand = Random.Range(0, objects.Length);
GameObject instance = Instantiate(objects[rand], transform.position, Quaternion.identity);
instance.transform.parent = transform;
}
}