In reply to S.P.Rajkumar.V:
I tried that also.
Actually I put a $display before this.pkt.randomize to print if the array is properly incrementing the index and I saw that there’s no problem. But the randomization still equate the addr to the previous index.