Randomization of two arrays with dependencies between them

In reply to dave_59:

Exactly as you wrote:

aux.max() - aux.min() <= relative_c;

My mistake. Thanks.