Time limit on for(int loop

Ok my head is hurting again. I don't hink the last code I posted works right but theres another issue as well. Not only do I need the for loop to repeat itself for the random value of time "i < mixer", but after that value is reached (anywhere from .1-4 seconds) I need it to delay for a random of 1-12 seconds... THEN
I need it to repeat itself with a brand new "mixer" value. Then I need it to continue this rotation for 10 mins total and then end. I think I'm in my deep end here. I've tried googling with all the functions I'm trying to use with no luck. Any advise?

The sketch below runs the function I'm looking to inject into another sketch. Since its on its own all alone in this sketch the delay works fine since the whole sketch turns over after the delay. But if I insert it into another script I need to limit its max run time to 10 mins, have the random delay at the end, and repeat with all new random values.

This is at a point that I would pay 5.00 per post if not more for help. I don't want someone to write this for me since I really enjoy everything I've learned from this community and about writing this sketch. But I'm up crap creek without a padle on this one. Please.... PLEASE advise, even if its the smallest amount of advice or a post. Even a google keyword at this point. I'm willing to put in the time and effort. Just lost.... O so lost.

int led = 11;
int burst; //short burst of light
int big;
int srumble;
int brumble;
int mixer;
int diming;
int delaymix;
int dark;

void setup() {                
 
  pinMode(led, OUTPUT);     
}


void loop() {
  burst = random(10,500); //Short burst of lightning value
  big = random(1000,4000);//long burst of lightning value
  srumble = random(10,40);//lower light lighting value
  brumble = random(10,255);//higher light lightning value
  mixer = random(burst,big);//random pick of short or long bursts of lightning
  dark = random(1000,12000);
 

  for(int i = 0; i < mixer; i += diming++)
  {
  diming = random(10,100);
  analogWrite(led, random(srumble,brumble));//Turn on LED for short or long burst
  delay(diming);//random number delay to remain at set brightness value
}
  digitalWrite(led, LOW);    // turn the LED off
delay(dark);
}