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
wordWordThe word to shuffle
minHammingDistanceintThe minimum hamming distance to ensure
randomIRandomThe random generator to use.
Returns
- Word
A shuffled string
Exceptions
- ArgumentNullException
wordis null- ArgumentException
Minimum hamming distance is greater than the length of the word