Hi
I'm working on an algorithm which causes some difficulties...
The Problem:
I'm trying to make a function. This functions input is a sequence of characters (letters) and its output is a number. The number is supposed to be generated on the basis of the input, so that each time the same sequence of characters occur the same number is generated. The number has to be unique, so that different sequences of characters generates different numbers. And now comes the really tricky part: The number has to be max five digits (99999). I know that the theoretical number of combinations generated on the basis of these characters (30 in length) are much higher, but in the practical world all these combinations will not occur. I know exactly how many combinations there are before the function is supposed to run (currently there are ca. 35000).
Does anyone know how to create such a algorithm, or have any tips on any principles... or any idea of how I can find out?
I would really appreciate some help here, so if anyone... :-)