Randomize dynamic array with unique values

In reply to bachan21:

I have used queue , instead of dynamic array , if you use dynamic array then syntax will change for adding elements , nothing much in the logic should change. Does it make sense ?