Randomize pin ports

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.

Thanks!

I would like the whole setup and void loop for me to understand,

You can wish for anything you like but don't expect any help unless you put in some effort. What have you tried so far ?

Have you got an Arduino board and if so, which one ? Have you had a look at the examples in the IDE ?

I want to randomize a pin port and be able to put on exactly who was selected.

That makes no sense to me. More details please

Is this a school assignment by any chance ?

Pin 1 is assigned to serial communications on a typical Arduino.