How to randomly generate unique dynamic array without using unique/foreach/queue?

I want to generate random dynamic array with unique value without using unique/foreach/queue.

In reply to Sagar Shah:
Why?

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…

In reply to Sagar Shah:

Can you please specify why that requirement came up ??