Random function

can you show me the code please as im new to arduino thanks

Added a function and an array and some #define, several tricks .

int pins[3] = {11, 12, 13};
int randomPin[3];

#define SWITCHPIN 4

int i;

void mySeeder()
{
  if (digitalRead(SWITCHPIN) == LOW) return ;  // only a reseed if the key is pressed
  randomSeed(micros());
}

void setup()
{
  for (int i=0; i< 3; i++) pinMode(pins[i], OUTPUT);

  pinMode(SWITCHPIN , INPUT);     // connect a switch between GND and pin 4 
  digitalWrite(SWITCHPIN , HIGH);  // use internal PULL UP resistor
  
  Serial.begin(115200);
  Serial.println("Press the switch to start ...");

  // first reseed is forced wait until a keypress
  while(digitalRead(4) == LOW);  
  randomSeed(micros());

  Serial.print(millis());
  Serial.println(" - started");
}

void loop()
{
  mySeeder();

  for (int=0; i<3; i++) randomPin[i] = random(11,14);

  digitalWrite(randomPin[0], HIGH);
  delay(30);
  digitalWrite(randomPin[1], LOW);
  delay(30);
  digitalWrite(randomPin[2], HIGH);
  delay(30);
}