I have a signal that goes high at random intervals, and I would like to have each rising edge toggle an output. Something like this:
I've looked into flip-flops, but they all seem more complicated than what I'm looking for (I don't understand why most of them need a clock). Is a flip-flop the appropriate component to achieve these results? If so, which one?