I assume you already know Chris Spear’s technique of using post-randomize with a randc variable to fill array with unique numbers…
Alternative way of doing is to actually implement an LFSR with a known polynomial
in fact, simulators maybe internally using a variant of LFSR to generate rand…