Check out example codes for "how to choose a random child in a gameobject unuity". It will help you in understanding the concepts better.

Code Example 1

public GameObject YourGameObject;

int randomChildIdx = Math.Random(0, YourGameObject.transform.childCount);
Transform randomChild = YourGameObject.transform.GetChild(randomChildIdx);

Learn ReactJs, React Native from akashmittal.com