Stupid newbie Q on hash functions.
Array to hash function.
Hi im trying to get my head around reading into a hash function.
I know i must be doing something stupid so please excuse the dumb questions...............
Now i want to read from an array of ints that have a value between 90000-99999. and put them in an array of 64 ints.
Now lets just say for talkings sake i create the index's by simply adding all the numbers(i know this isnt a good way of going about it). I.E 99998 would = 9+9+9+9+8, index 44. How on earth do i go about getting the value 99998 back from index 44?
Any help would be greats, thanks.