# Applying unique to random variables

**URL:** <https://verificationacademy.com/forums/t/applying-unique-to-random-variables/35572>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, constraint, associative-array\
**Created:** [January 5, 2019, 11:45pm UTC](https://verificationacademy.com/forums/t/applying-unique-to-random-variables/35572 "2019-01-05T23:45:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [January 6, 2019, 4:33pm UTC](https://verificationacademy.com/forums/t/applying-unique-to-random-variables/35572/6 "2019-01-06T16:33:35Z")

</div>

_In reply to [Etrx91](https://verificationacademy.com/forums/t/applying-unique-to-random-variables/35572/5):_

The unique constraint needs more than one integral value, otherwise it does nothing, Why not use **randc** for this?

---

_[View the full topic](https://verificationacademy.com/forums/t/applying-unique-to-random-variables/35572)._
