I would like to control no.of ones and zeros in a particular dynamic array by using constraint?

In reply to vamshikrishnaboosam:

You are going to have to show the complete set of constraint so that we can try to help you. I’m sure you do not want to have x be a 32-bit randc number.