millis with random switching question

ok
the code is as was the provided by me old mate coding badly, the led was another seprate to board but as i was lead to believe pin 13 has inbuilt resistor for this purpose ( maybe not ha).over night i left it running with only board led doing the work and it is still working this morning,looks like i either need to provide seperate power source via switching transistor to led or increse the resistance via a couple of resistors on bread board,lesson learnt !
and thanks for your reply.