Revert "Use random.sample() rather than reinventing it."

My wrong. sample() doesn't allow repeating characters, so it's not
exactly the same.