def random_combination(iterable, nquartets):
pool = tuple(iterable)<EOL>size = len(pool)<EOL>indices = random.sample(xrange(size), nquartets)<EOL>return tuple(pool[i] for i in indices)<EOL>
Random selection from itertools.combinations(iterable, r). 
Use this if not sampling all possible quartets.