Function call in System Verilog constraint

In reply to sunilkakkar:

Did you figure out what was wrong in your code?
Just curious.
There was not enough of the class given for me to determine if Ben’s reply was applicable in your case (since you said that the function, which would be solved first, did indeed print correct (non 1?) values).
Or perhaps I didn’t get Ben’s explanation.