Random Relay 6 pins / 3 pins works, 3 does'nt. What's wrong?

Not only previousMillis is wrong (no code tags to use bold). Last few lines all do their best to set ledState4 = LOW all the time. I can't see ledState5 nor ledState6 ever change value

if ((ledState5 == LOW) && (currentMillis5 - previousMillis5 >= randNumber9))
{
ledState4 = HIGH; // turn it on