import itertools
import random


def get_n_random_combinations(rows, quantity=None):
    """
        Return a list with N random combinations of two list
    """
    combinations = list(itertools.product(*zip(*rows)))
    random.shuffle(combinations)
    return combinations[:int(quantity)] if quantity else combinations