Ok, I took a shot at what I think you are trying to do. The attached VI monitors an analog signal. When the analog signal goes above 5V (could be easily modified for any level), the program pauses for a selectable amount of time, then writes to one of three randomly selected digital lines (the LEDs on my digital lines were reverse logic, so you might have to adjust the polarity). This will at least give you something to work with. Hope this helps!
-Alan A.