I want to write a function which randomizes the order of a sequence of alphabetic characters. For example, the sequence:
A B C D E F G . . .
…might be changed to:
Z L T A P …
…which, if passed to the same function again could result in:
H R E I C ….
Any suggestions?
Have a look at the Fisher-Yates shuffle algorithm, and in particular the modern version of it.