Hi, i'm on a project where i need randomize pin ports between 1-4. Its a game when i've made 4 stations with sensors on each of every station. I have a button to start the whole program and then i want a random pin port that i can trigger. I have 4 sensor pins that i need to randomize and then start that sensor. When somebody passes the sensor it will tell the program to switch sensor and keep doing that in a loop. I want to randomize a pin port and be able to put on exactly who was selected. I'm new to this so can anyone help me with the code?
I got a arduino UNO
I've checked for examples in arduino and around on internet bur dont find anything that helps me
Kind of a random number generator for 4 different pins. and then so that i can controll them.