import random


def get_number_fires(distribution: dict):
    """
    Use the distribution to randomly get how many fires to start in the Forest.

    :param distribution: dict; the distribution of number of fires to start each iteration.
    :return: int; the number of fires to start from the distribution
    """
    random_num = random.uniform(0, 1)
    for key in sorted(distribution.keys()):
        if random_num <= key:
            return distribution[key]
    return 0