Problem in unique of Constraint Randomization

In reply to Huzefa Halolwala:

In reply to sharvil111:
“file.sv”, 8: token is ‘unique’
constraint ab {unique {a,b[2:5],c};}
^
System verilog keyword ‘unique’ is not expected to be used in this context.

Yes. Your VCS version might be 2013 or earlier than that. Just move to a newer simulator version.