Dazu muss man sich gedanklich anders aufstellen. Hier eine von vielen Möglichkeiten:
Code:
int rd0=0, rd1=0, ye0=0, ye1=0;
int i=0;
for(i=0; ;i++) {
  if(i==rd1) { rd0=i+irand(50, 250); led_set(LED_L_RD, 1); };
  if(i==rd0) { rd1=i+irand(50, 250); led_set(LED_L_RD, 0); };
  if(i==ye1) { ye0=i+irand(50, 250); led_set(LED_L_YE, 1); };
  if(i==ye0) { ye1=i+irand(50, 250); led_set(LED_L_YE, 0); };
  delay(1);
}