range to 01

Code Example - range to 01

                
                        (x-min(x))/(max(x)-min(x))