What about randomly selecting one from all possible n-tuples?|
A language teacher asked if there was a program to mix up the words
in a sentence to help automate the process of creating
"unscramble the sentence" type exercises.
Seems to be the above problem with one caveat:
the word ordering has to look random also,
i.e. a word can't have any of the same neighbor
words that it originally had.
Ideal shuffling of playing cards is like selecting one n-tuple from all possible n-tuples, but non-ideal shuffling is trivial. I used this idea to solve the problem. PLT scheme has some card shuffling code they use for their card game demos.