A function that maps keys to integers, usually to get an even distribution on a smaller set of values.