# Illegal attempt to resize random dynamic array

**URL:** <https://verificationacademy.com/forums/t/illegal-attempt-to-resize-random-dynamic-array/27734>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [January 23, 2012, 1:23pm UTC](https://verificationacademy.com/forums/t/illegal-attempt-to-resize-random-dynamic-array/27734 "2012-01-23T13:23:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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 24, 2012, 11:58pm UTC](https://verificationacademy.com/forums/t/illegal-attempt-to-resize-random-dynamic-array/27734/3 "2012-01-24T23:58:42Z")

</div>

_In reply to [richedelman](https://verificationacademy.com/forums/t/illegal-attempt-to-resize-random-dynamic-array/27734/2):_

By the way, hitting this limit is usually the indication of an improperly specified constraint. I noticed you had

```auto
randc bit [7:0] payload_data[];

```

I don’t know what you were expecting that to do. It won’t generate an array of unique numbers, and it may be too large an array to have cyclical values for each call to randomize()

---

_[View the full topic](https://verificationacademy.com/forums/t/illegal-attempt-to-resize-random-dynamic-array/27734)._
