Inside constraint

In reply to srvm:

Hi Rakhi,

I checked the above scenario and ran it in VCS/dve and observed that the randc variable does support the “inside” constraint.

The code was displaying the number mentioned within the constraint block.
Which simulator are you using?
I believe there is an issue in your display format specifier.
Do check it and let us know.

Regards,
Aswin.