In this project, we continue the development of our Simon Says pattern-matching game by adding randomized LED blinking.

In our last project, we wrote some code to flash LEDs in a preplanned sequence. While that's a good start, in our Simon Says game, we're going to need to flash LEDs in a random sequence. This will require us to make some modifications to the code from the last project, which will give us a random sequence of LED flashes.

The hardware setup for this project should be the same setup that was completed for the project. Here's a reminder:

Here is what the code for this project should look like at this point (with new changes highlighted with arrows). When you run it, you will see a random LED flash, then that light will repeat with a second random light added, then that 2-light sequence will repeat with a third added and so on (the sequence will continue until you stop the program):

Here, we've made the following code changes: