Here is a small function to shuffle a string : ConsoleWrite( _StringShuffle("I like AutoIt !") ) Func _StringShuffle($sString) For $i = StringLen($sString) - 1 To 0 Step -1 $sString = StringRegExpReplace($sString, "(?s)(.{" & Random(0, $i, 1) & "})(.)(.*)", "$1$3$2") Next Return $sString EndFunc It could be useful ?