Combining an LDR sensor with random blinking

Another "answer" would be to use an ultrasonic proximity detector...