Combining an LDR sensor with random blinking

First question, how do you have the LDR hooked up?

--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons