Conditional constraint inside inline constraint

Is there any way to declare conditional constraint inside inline constraint while calling randomize method.

In reply to Somu:
You can declare any constraint in-line that you could have declared as a class member. Are you having a specific problem?