No matter how many times I run this it never randomly selects the third child. It always prints FIRST or SECOND… What is the issue here? Adding another child allows the third to be selected but the last child is never selected.
I guess a janky workaround would be to just have a fake state at the end that does nothing…