def _divide_runs(runs, processes):
    """
    Splits a certain amount of runs among proncesses as evenly as possible.

    >>> _divide_runs(1000, 4)
    [250, 250, 250, 250]
    >>> _divide_runs(5, 10)
    [1, 1, 1, 1, 1, 0, 0, 0, 0, 0]
    >>> _divide_runs(5, 2)
    [3, 2]
    """
    quotient, remainder = divmod(runs, processes)
    return [quotient + 1] * remainder + [quotient] * (processes - remainder)