What I am trying to do here is to use the 'random' function on a floating pin (A0) to generate a random number, say, in between 1 and 5. That number will appear on the serial monitor every 4000 miliseconds. I understand that and can successfully use randomSeed and Serial.println in order to see the numbers appear on that screen.
My main question is how do I correspond that random number that appears on the Serial.print and get it to blink an LED that number of times? So the program would start up, generate a random number, then pulse a HIGH signal corresponding to that pin to blink the LED (pin 13) within the 4000 milisecond delay of the random. It's possibly more of a random signal command to the pin and just have the Serial.monitor record that random number, I'm not sure how to go about this. Any help is appreciated, thank you.