def scalefunc(min, max):
    min, max = float(min), float(max)
    return lambda x : float(x) * (max-min) + min
return func for rescaling value from range 0,1 to min,max
dataset/ETHPy150Open adamewing/bamsurgeon/scripts/randomsites.py/scalefunc