Thanks for your quick reply .
Sorry for the ambiguity. [-200, 300] is just an example to explain numbers that are out of [0,255].
My input has different ranges, which is all out of [0,255]. And I want to generate numbers corresponding to the input as precise as possible