The random node is called every time there is a connection. In your case here, 3 times
If you want things to function predictably, then just choose a random item and put it in a variable, before going into the end of the loop.