Method ShuffleWord
ShuffleWord(Word, int, IRandom)
Shuffle the letters of a word and ensure a minimum hamming distance
public static Word ShuffleWord(Word word, int minHammingDistance, IRandom random)
Parameters
word
WordThe word to shuffle
minHammingDistance
intThe minimum hamming distance to ensure
random
IRandomThe random generator to use.
Returns
- Word
A shuffled string
Exceptions
- ArgumentNullException
word
is null- ArgumentException
Minimum hamming distance is greater than the length of the word