This is an old project I made. You alter the variables and then press (more like hold) space to start to generate. For a random generated pattern, press "r". you can also press numbers 1-9 to see some preset patterns. You can remix this and put your own pattern on the 0 key. Scratch On!