Is it possible to create a custom hash algorithm, something that can provide an integer within a specific range. Example below.
(a,b) is the input to the hash. (a,b) != (b,a) where a and b are both integers >= 0
The solution must be within the range (min,max).
Would this be possible? With this I would like (a,b) being hashed on two occasions to provide the same integer if also being given the same range as well.
Thank you.
a != b. Consider the function(a,b) -> ( a > b ? 1 : 0 )