Add required method for randomizing string.
Merge origin/master