Static function usage in constraints

In reply to visinescu13:

works fine on Mentor Questa and VCS

I had to remove ‘static’ from class definition,


class  utils#(type T=int);

but, for what you want to achieve, you can put this function in post randomize