Changed generator from base 2 length to base 10