Array in "randomize with" constraint is not properly incrementing its index

In reply to Reuben:

And then when I tried to change the code like this one below, it works.


repeat(3) begin
  this.pkt.randomize();
  this.pkt.addr = addr_arr[msg_id];
  msg_id++;
end