You want to turn on the same switch 3 times then turn it off 3 times? Or are you trying to turn a light on and off 3 times? It isn't quite clear from what you posted here because if i read this it sounds like you want
On, On, On, Off, Off, Off with waits in between.
Okay...why do you need a wait after turning the switch off?
Do you want each "random" to be unique or could it be
Turn on 1,2,3 + wait random + turn off 1,2,3?
Each line is random.... not sure how else to explain this..
Turn On - (switch 1) (random delay) (+ or -) (secs, min , hours, days)
Turn On - (switch 2) (random delay) (+ or -) (secs, min , hours, days)
Turn On - (switch 3) (random delay) (+ or -) (secs, min , hours, days)
Turn On - (switch 4) (random delay) (+ or -) (secs, min , hours, days)
I would suggest you need a number of rules to do this.
Use a condition or trigger to turn on light one after a random time.
Then turn on light 2 after a random time using light one turning on as a trigger.
Then turn on light 3 after a random time using light 2 turning on as a trigger.
Then work backwards using the same method for turning them off.
Not if you want each random to be unique. Each switch will need to be treated separately and you would have to do one rule and one action for each. Basically, you have one rule or triggered rule or trigger to turn the light on. Also, you will call to run an "Action". That action will be configured to wait plus random and turn off the switch. So, if you want to do the same thing for 4 devices you would need the trigger or triggered rule or rule to call 4 separate actions each configured to turn off a different device.
For example, this set will turn on the switch test and then turn it off between 5 and 10 minutes later.
As @Ryan780 has said you will need a rule for each step /light turn on.
It does sound like a pain but once set up, it should do what you want. (Maybe )
Personally I don't think you need to call another rules actions. I think you could put the turn on actions in each rule.
I haven't looked hard. Just knocked something up quick to give you an idea of how you could do it.
Have a rummage around. If you cannot find it, come back.
The random is only available in the global delay. So, doesn't apply for his application. You have no random at all. If you want the off to be a random delay but not the on, you would need to trigger another action.
Yep, @Ryan780 will give you the random element you are after.
As an aside I have some rules for turning lights on and off when we are away.
It also turns on another light so it looks like we have moved into the hall and then the downstairs loo.
Is that the sort of thing you are trying to achieve?