bagaimana memilih anak acak dalam gameObject unuity

public GameObject YourGameObject;

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