I'm new to arduino and have a question for a school project.
We want to make a puzzle box. We need to activate an X number of sensors in a set order and if done right, the box will open.
The thing is, we want the order to be random. For example, if you have sensors 1-5 then a 4 order would be 1- 3 - 3 - 5. We used a randomseed(A0) in void setup, so that every time you start, you get a new order to complete the puzzle.
Right now the problem is writing the part that links the random number order to the sensors. Is there a (preferably rather easy) way to link sensor A0 to 1? A0=1 doesn't work, but that's the kind of thing I'm hoping to find as a solution.
Looking forward to an answer, and thanks in advance.