Add required method for randomizing string.