RANDC and RAND variables in the same class: the second one should constraint the first one

I guess it’s a replication of this post link