Returns a random Game Object from this Container.
name | type | arguments | description |
---|---|---|---|
startIndex | number | <optional> |
An optional start index. |
length | number | <optional> |
An optional length, the total number of elements (from the startIndex) to choose from. |
A random child from the Container, or null
if the Container is empty.