Of course, the resistor also has to have a sufficient view of the LED. You might use this as a safety light that only works in the dark. A simple circuit, but it just goes to show that we tend to ...
Today you can buy flashing LEDs; a simple two-lead component ... for all the world like any other LED, though embedded in the plastic dome is an integrated circuit to do all that flashing work.