In reply to sid1406:
Please use code tags making your code easier to read. I have added them for you.
It would also help to show a complete example, especially all the variable declarations and their values when the call to randomize is made.
But it’s seems your conflict is you have a constraint {sleep_cycles <= max_sleep_cycles} and you have randomized max_sleep_cycles to be a value between 50 and 200, and you have another constraint where sleep_cycles had to be in the range 150001 to 200000.