import random


def valid_add(gene_info, individual):
    """Based on gene info and current individual, return a valid index to add
    to an individual.
    """
    return random.choice(list(set(range(0, gene_info.gene_count))
                              - individual))