resca function

Rescale a variable to have specified minimum and maximum values