millis with random switching question

Do you have a current limiting resistor in series with that LED?

Or are you talking about the on-board LED?