# Randomize dynamic array with unique values

**URL:** <https://verificationacademy.com/forums/t/randomize-dynamic-array-with-unique-values/39022>\
**Category:** SystemVerilog\
**Tags:** dynamic-array-constraint, dynamic-arrays, SystemVerilog, systemverilog-constraint, uvm-dynamicarray\
**Created:** [April 26, 2021, 9:17am UTC](https://verificationacademy.com/forums/t/randomize-dynamic-array-with-unique-values/39022 "2021-04-26T09:17:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MohammedWasimMaster](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@MohammedWasimMaster](https://verificationacademy.com/forums/u/MohammedWasimMaster)\
**Post date:** [April 27, 2021, 5:41pm UTC](https://verificationacademy.com/forums/t/randomize-dynamic-array-with-unique-values/39022/4 "2021-04-27T17:41:43Z")

</div>

_In reply to [bachan21](https://verificationacademy.com/forums/t/randomize-dynamic-array-with-unique-values/39022/3):_

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 ?

---

_[View the full topic](https://verificationacademy.com/forums/t/randomize-dynamic-array-with-unique-values/39022)._
