Constraint for a random variables

In reply to n347:

It’s working. Thanks a lot.