Let's say I have a database of 100,000 more or less random strings and I want to generate a number from each string between 1 and 500.
My method should always generate the same number (given the same string) and it should be an even distribution of numbers from 1 to 500.
Any ideas?