def get_items(coo, num_items=2, num_iter=10):
    idx = np.random.rand(num_iter, len(coo)).argpartition(num_items, axis=1)[:,
        :2]
return np.asarray(coo)[idx]
Which is the more efficient way to choose a random pair of objects from a list of lists or tuples?