random blinking without delay and blinking with delay in 1

UKHeliBob:
Is the use of the ! operator limited to booleans ? Answer, no.

Never said that. The "exclusive or" operator (XOR / ^) is the best and fastest sollution, so that will remain as my recommendation.