Changed shortener algorithm to be more random