It depends on what you mean by random. In this type of case, it's probably enough to have an oscillator running constantly, kind of like a coin that is always flipping, and when the button is pressed, the state at that time is captured and used to control the indication. If the oscillator is...