Constraints on array elements

In reply to verif_gal:

class dyn_arr; 
  rand int abc[];
  constraint abc_c { 
    abc.size()==5;
    unique {abc};
   } 
  function void post_randomize(); 
    abc.rsort(); 
  endfunction 
endclass