Made changes to HashToRange

The problems lies within trying to put the hash into an integer.