Connect two 7-segment displays to two lDR respectively

Hai, I am a newbie and working on a project which needs to blink two LED randomly and count their blinking in 60 seconds, then show using the 7-segment display. I did the random blinking part and I have some troubles on the LDR and 7-segment display part. Here I attached with my schematic diagram. How can I make two 7-segment display to read the data from their LDR respectively and print it? And also it seems like there is no enough pin to let me connect with two 7-segment display.
Here is my code for random blinking and LDR. I did not include the library because tinkercad can't find it.

//#include <SevSeg.h>
int LED_red = 12; 
int LED_blue = 13; 
int ldr1 = A0;
int ldr2 = A1;
int sensor1 = 0;
int sensor2 = 0;

void setup() 
{ 
  Serial.begin(9600);
  pinMode (LED_red, OUTPUT); 
  pinMode (LED_blue, OUTPUT);
  
  pinMode (ldr1, INPUT);
  pinMode (ldr2, INPUT);
} 

void loop() 
{ 
  digitalWrite(random(12,14),HIGH); 
  delay(3000); 
  digitalWrite (LED_blue, LOW); 
  digitalWrite (LED_red, LOW); 
  delay(1000); 
  
  sensor1 = analogRead(ldr1); // read the value from the ldr1
  Serial.println(sensor1); //prints the values coming from the sensor on the screen
  sensor2 = analogRead(ldr2); // read the value from the ldr2
  Serial.println(sensor2);
}

What made you think that your question has anything to do with the Website and Forum section which is clearly stated to be for "Improvements for the web system, applications to moderator, spam, etc."? I have suggested to the Moderator to move it to the Programming section.

This sort of carelessness makes unnecessary work for the Moderators.

And your animated Avatar gives me a headache after 5 seconds so I won't be trying to help as long as it remains.

...R

janethooooo:
blink two LED randomly and
count their blinking in 60 seconds,
then show [the counts] using the 7-segment display.

One problem is that the 'blinking' part is going to take four seconds (3 on, 1 off). The number of blinks in 60 seconds is going to be 15 so there is a chance that one of the counts will be over 9 and won't fit in a one-digit display.
You pick your random number in a digitalWrite() call so it will be hard to count the two LEDs separately. You should pick a number from 0 to 1 and use that to both light the LED and count the blink:

  int whichPin = random(2);
  if (whichPin == 0)
  {
    digitalWrite(Led_red, HIGH);
   Count_red += 1;
  }
  if (whichPin == 1)
  {
    digitalWrite(Led_blue, HIGH);
   Count_blue += 1;
  }

Robin2:
What made you think that your question has anything to do with the Website and Forum section which is clearly stated to be for "Improvements for the web system, applications to moderator, spam, etc."? I have suggested to the Moderator to move it to the Programming section.

This sort of carelessness makes unnecessary work for the Moderators.

And your animated Avatar gives me a headache after 5 seconds so I won't be trying to help as long as it remains.

...R

Sorry for putting my topic into a wrong section, thanks for your advice and this let me know one more feature of this forum! Sorry for my profile pic that gives you a headache, I have changed it. This is really good advice for me! I will keep learning and try my best to make fewer mistakes. And also sorry for being troublesome to the moderator.

johnwasser:
One problem is that the 'blinking' part is going to take four seconds (3 on, 1 off). The number of blinks in 60 seconds is going to be 15 so there is a chance that one of the counts will be over 9 and won't fit in a one-digit display.
You pick your random number in a digitalWrite() call so it will be hard to count the two LEDs separately. You should pick a number from 0 to 1 and use that to both light the LED and count the blink:

  int whichPin = random(2);

if (whichPin == 0)
 {
   digitalWrite(Led_red, HIGH);
  Count_red += 1;
 }
 if (whichPin == 1)
 {
   digitalWrite(Led_blue, HIGH);
  Count_blue += 1;
 }

Thank you very much for this! This is very helpful, I appreciate your help. Have a nice day.