# Randomising a logic vector of more than 32 in System Verilog

**URL:** <https://verificationacademy.com/forums/t/randomising-a-logic-vector-of-more-than-32-in-system-verilog/37706>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, systemverilog-constraint, randomization, systemverilog-Arrays-packedarrays-unpackedarrays, array-randomization\
**Created:** [June 11, 2020, 3:51pm UTC](https://verificationacademy.com/forums/t/randomising-a-logic-vector-of-more-than-32-in-system-verilog/37706 "2020-06-11T15:51:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Mitu\_Raj](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/mitu_raj/32/1966_2.png) [@Mitu\_Raj](https://verificationacademy.com/forums/u/Mitu_Raj)\
**Post date:** [June 12, 2020, 3:34am UTC](https://verificationacademy.com/forums/t/randomising-a-logic-vector-of-more-than-32-in-system-verilog/37706/5 "2020-06-12T03:34:25Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/randomising-a-logic-vector-of-more-than-32-in-system-verilog/37706/4):_

Thanks Dave. I will try out both methods.

Any idea on why SV finds it “difficult” to randomize the 93 bits using randc, after constraining first three bits constant ?? I mean, if that constraint is not there, SV can cycle thru all 96-bit values in unique fashion. Then it should be able to cycle thru 93-bit values as well. And now I really doubt whether it is actually cycling thru 96-bit values, when I think about the memory limitations on randc mentioned in LRM.

---

_[View the full topic](https://verificationacademy.com/forums/t/randomising-a-logic-vector-of-more-than-32-in-system-verilog/37706)._
