Generating correlated variables for experimental tasks