Functionality: switch pair randomly each time.
method 'randomSetGenerator' use LinkedHashSet and recirsive to generate a duplicate random set.