Best shuffle: Difference between revisions
Content deleted Content added
No edit summary |
Ficed off-by-one |
||
Line 73:
Random, CharIndex, 1, Length
NumPut(Asc(SubStr(String,CharIndex,1)),String,(A_Index - 1) << !!A_IsUnicode,CharType) ;set the character at the current position
NumPut(Asc(A_LoopField),String,(CharIndex - 1) << !!A_IsUnicode,CharType) ;set the character at the random position
}
}</lang>
|