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