External constraint fail

In reply to cropty:

Wrong. The problem is unless randomize(TEST) gets called first, the constraint c_int_test1 cannot be met. Remember that active constraint must always be met regardless of which variables are being randomized.

You may want to rethink your approach how variables and constraints are organized. You haven’t provided any information why you need to randomize your variables separately.