def make_population(population_size, solution_generator, *args, **kwargs):
    """Make a population with the supplied generator."""
    return [
        solution_generator(*args, **kwargs) for _ in range(population_size)
    ]