I was asked how to transform a number from an arbitrary range into a value between 0 and 1. In other words, given a minimum and maximum value, how would you normalize any number within that range so that the smallest value maps to 0 and the largest value maps to 1?