# Constraint & Random variable distribution

**URL:** <https://verificationacademy.com/forums/t/constraint-random-variable-distribution/37603>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [May 19, 2020, 5:59am UTC](https://verificationacademy.com/forums/t/constraint-random-variable-distribution/37603 "2020-05-19T05:59:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rag123](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@rag123](https://verificationacademy.com/forums/u/rag123)\
**Post date:** [May 19, 2020, 6:24am UTC](https://verificationacademy.com/forums/t/constraint-random-variable-distribution/37603/2 "2020-05-19T06:24:13Z")

</div>

_In reply to [DVJoe](https://verificationacademy.com/forums/t/constraint-random-variable-distribution/37603/2):_

It is because of this constraint. Out of (2^8) combinations you are expecting b to be 10 when A is 1.

(a==1) → **(b==int’(10))**;

A value = 1 , B value : 00001010

---

_[View the full topic](https://verificationacademy.com/forums/t/constraint-random-variable-distribution/37603)._
