from typing import List
import random


def get_pairs(nIndividuals:int,nParents:int,parent_indx_seed=[]) -> List[int]:
    """Gets a list of integers that are not in the parent_indx_seed array
        
    Args:
        nIndividuals (int): number of individuals
        nParents (int): number of parents. this controls the length of the returned list
        parent_indx_seed (list, optional): pre-populate the parent index array. Defaults to [].

    Returns:
        List[int]: list of individual indeicies that can pair with 
    """
    parent_indicies = list()
    for i in range(nParents):
        rand_indx = random.randint(0,nIndividuals-1)
        while(rand_indx in parent_indx_seed):
            rand_indx = random.randint(0,nIndividuals-1)
        parent_indicies.append(rand_indx)
    return parent_indicies