how to choose a random child in a gameobject unuity code example
Example: how to choose a random child in a gameobject unuity
public GameObject YourGameObject;
int randomChildIdx = Math.Random(0, YourGameObject.transform.childCount);
Transform randomChild = YourGameObject.transform.GetChild(randomChildIdx);