Blinking LEDs for a set number of times followed by another action

as your code is now, i think it'll never move to blinking a random led (as you said, you commented that part out).
if i would remove the comment, i would expect it to immediately go to selecting a random led (since there's nothing stopping it), that can't be the goal either?

About the problem you have: it shouldn't be that hard to figure out yourself. You're sure it's wired correctly? if it is, either you're setting both pins high, or you haven't set the pin low before moving to the random part.
Which leds are on when the value is 3 or 4? is it the first led, and the led that is supposed to be on? then when the first led is the only one being lit, it's probably just because you didn't turn it off before going to the random led part. So it's still on, if random selects the first one, it keeps it lit, if it's one of the other 2, it lights them too, but doesn't turn off the first one.