Working hash function, feed it a random number between 0 and int-max