millis with random switching question

Reading from an OUTPUT works so toggling pin 13 can be reduced to this single line of code...

digitalWrite(13, ! digitalRead( 13 ) );