In java, I need a hash function or algorithm that generate the number from the specified input string in such a way that the generated number should be in the range like 1000 to 6000.
Condition to satisfy : 1) The algorithm should always reproduce the same number for same string. 2) Algorithm should generate unique positive number for each different strings 3) The number of input string is restricted to the range. i.e if range is 5000, then i will allow only 5000 input strings to algorithm
Thanks in advance.
Is there any built in API available, please refer that also.