loading

Random LED Light up

I'm trying to make a row of 6 LED's where a random one light up when you press a button. I'm using a toggle button, so the led stays on until the button moves to the Off position. Then when you move it to the On position it chooses another random LED to light up. How could I go about doing this?

lemonie8 years ago
Random is tricky, but I've just published an Instructable with a rotary 12-position switch, if you could find similar you might be able to do something with that (stepper-motor-drive)?

L