The designator randomChild returns a randomly-chosen child of the current note (i.e. this note). If the current note has no children, randomChild returns the name of the current note. For example:
$MyString = $Name(randomChild)
See also—notes linking to here: