Unique values in a queue

hello, can anyone tell how to get unique values in a queue when I randomize sequence item.

In reply to sh88:

Use “unique” construct from systemverilog
https://verificationacademy.com/forums/systemverilog/problem-unique-constraint-randomization

In reply to sa5691:

I think it unique values between a,b,c ie. a!=b!=c

I am asking for only single queue with all unique values.

In reply to sh88:

You can put an array in the unique constraint at it applies to every element in the array.

rand int queue[$];
constraint cu { unique {queue}; }

You will have to deal with the size of the queue either before calling randomize() or using a constraint on its size.