Generate a variable correlated with an existing one
correlatedValue.RdDraws a new variable y = r*x + noise, with noise scaled so that
cor(x, y) is approximately r. Negative results are clipped
to 0 (this assumes x/y are non-negative quantities, e.g.
pigment concentrations – see get_distributionLUT's
DepCab option, which uses this to correlate Car with Cab).