Delay random function

Is there a way to delay the speed of the random seed function without using delay()? I'm trying to make a whac a mole style game by turning off the LEDs by a specific button. But it turns out that I'm having unwanted output on the LEDs when I use the delay and the LEDs wont turn off when I press the button for the lit up LED. Any suggestions? Here's the code. Don't mind the Serials. I'm just using them in checking the pulse and score. I'll be removing them on my final output.

int pulse1 = 0; int pulse2 = 0;
void setup()
{
  pinMode(2,INPUT); pinMode(3,INPUT); pinMode(4,INPUT); pinMode(5,INPUT);
  pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(8,OUTPUT); pinMode(9,OUTPUT);
  randomSeed(analogRead(0));
  Serial.begin(9600);
}

void loop()
{
  randNumber = random(4);
  if (randNumber = 0)
  {
    int pulse1 = 0; 
    int pulse2 = 0;
    digitalWrite(8,LOW);
    digitalWrite(9,LOW);
    
    if (pulse1 <= 0)
    {
      digitalWrite(6,HIGH);
    }
    if (pulse2 <= 0)
    {
      digitalWrite(7,HIGH);
    }
    
    if (digitalRead(2) == HIGH)
    {
      pulse1++;
      score++;
    }
    if (digitalRead(3) == HIGH)
    {
      pulse2++;
      score++;
    }
    
  }
  if (randNumber = 1)
  {
    int pulse1 = 0; 
    int pulse2 = 0;
    digitalWrite(6,LOW);
    digitalWrite(7,LOW);
    
    if (pulse1 <= 0)
    {
      digitalWrite(8,HIGH);
    }
    if (pulse2 <= 0)
    {
      digitalWrite(9,HIGH);
    }    
    
    if (digitalRead(4) == HIGH)
    {
      pulse1++;
      score++;
    }
    if (digitalRead(5) == HIGH)
    {
      pulse2++;
      score++;
    }
  }
  if (randNumber = 2)
  {
    int pulse1 = 0; 
    int pulse2 = 0;
    digitalWrite(6,LOW);
    digitalWrite(8,LOW);
    
    if (pulse1 <= 0)
    {
      digitalWrite(9,HIGH);
    }
    if (pulse2 <= 0)
    {
      digitalWrite(7,HIGH);
    }
    
    if (digitalRead(5) == HIGH)
    {
      pulse1++;
      score++;
    }
    if (digitalRead(3) == HIGH)
    {
      pulse2++;
      score++;
    }
  }
  if (randNumber = 3)
  {
    int pulse1 = 0; 
    int pulse2 = 0;
    digitalWrite(7,LOW);
    digitalWrite(9,LOW);
    
    if (pulse1 <= 0)
    {
      digitalWrite(6,HIGH);
    }
    if (pulse2 <= 0)
    {
      digitalWrite(8,HIGH);
    }
    
    if (digitalRead(2) == HIGH)
    {
      pulse1++;
      score++;
    }
    if (digitalRead(4) == HIGH)
    {
      pulse2++;
      score++;
    }
  }
  
 Serial.println(score);
 Serial.println(pulse1);
 Serial.println(pulse2);
 delay(1000);
}

Is there a way to delay the speed of the random seed function without using delay()?

I seriously doubt that:
A) The randomSeed() function's speed is relevant.
B) That it is what you want to control the speed of.

  if (randNumber = 0)

What was the purpose of getting a random number when you are assigning randNumber a value here?

PaulS:

Is there a way to delay the speed of the random seed function without using delay()?

I seriously doubt that:
A) The randomSeed() function's speed is relevant.
B) That it is what you want to control the speed of.

  if (randNumber = 0)

What was the purpose of getting a random number when you are assigning randNumber a value here?

I want my program to light up random LEDs and hit a specific button to turn the lit up LED off. If I dont use delay, the LEDs would just, like turn on and off fast like what happens if you place serial.print without delay().

About that randNumber = n, my bad. I already changed it to randNumber == n. Thanks.

The purpose of the delay is to light the LEDs for a certain time and turn off after that certain time runs out if you fail to press the specific button designated to it.

The purpose of the delay is to light the LEDs for a certain time and turn off after that certain time runs out if you fail to press the specific button designated to it.

Have you read, and understood, the blink without delay example?

    int pulse1 = 0; 
    int pulse2 = 0;
    digitalWrite(8,LOW);
    digitalWrite(9,LOW);
    
    if (pulse1 <= 0)
    {
      digitalWrite(6,HIGH);
    }
    if (pulse2 <= 0)
    {
      digitalWrite(7,HIGH);
    }

What is the purpose of testing values that you have hard-coded? What is the purpose of incrementing local variables that are going to go out of scope?

Having global and local variables of the same name is a REALLY bad idea.

As I said on my post, I tried various steps. Here is the first sketch I made that randoms the LEDs on how I want it to work. The problem here is that it does not turns off the LEDs unless you hold the push buttons down. I tried boolean example on how to kinda make the buttons hold after a press, but it does not work.

I have not seen the blink without delay tutorial. I'll be checking that. This is actually a project sir and I'm a college student. I have just studied arduino for 3 days.