i´am trying to do a homework about the basics of arduino and i have to make a led (turn on for 500 ms and off for 500 ms ) a specific amount of time which has to be randomly assigned from 0 to 10. and then make the led turn off for 2 sec before starting the process again . i know iàm maybe on the right track but my code is missing a lot , so it will be nice if someone could help me completing it .
bool Looped = false;
int rn =0;
if ( Looped == false )
for ( int x = 0; x <rn; x++ )
Looped = true; digitalWrite(LED_BUILTIN, LOW); delay(2000); }