generate random length of string