# Percentage weighted distribution of SV Constraints

**URL:** <https://verificationacademy.com/forums/t/percentage-weighted-distribution-of-sv-constraints/40139>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, constraint-dist, constraints, weighted-distribution\
**Created:** [March 10, 2022, 1:59am UTC](https://verificationacademy.com/forums/t/percentage-weighted-distribution-of-sv-constraints/40139 "2022-03-10T01:59:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![yourcheers](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/y/5f9b8f/32.png) [@yourcheers](https://verificationacademy.com/forums/u/yourcheers)\
**Post date:** [March 10, 2022, 6:00am UTC](https://verificationacademy.com/forums/t/percentage-weighted-distribution-of-sv-constraints/40139/4 "2022-03-10T06:00:17Z")

</div>

_In reply to [natasv](https://verificationacademy.com/forums/t/percentage-weighted-distribution-of-sv-constraints/40139/3):_

This is very much probabilistic, when you run for more iterations the probability ratio is more accurate.  
When I run this code in eda playground, I see [0:5] is about 599 times, & [6:7] is about 401 times, that is 6:4 ratio. what is not working for you in this?

---

_[View the full topic](https://verificationacademy.com/forums/t/percentage-weighted-distribution-of-sv-constraints/40139)._
