import random

def generate_random_years(filename: str, count: int, start_year: int, end_year: int):
    """
    Generate a list of random years and write them to a file.
    
    :param filename: Name of the output file
    :param count: Number of years to generate
    :param start_year: Minimum year (inclusive)
    :param end_year: Maximum year (inclusive)
    """
    with open(filename, 'w') as file:
        for _ in range(count):
            year = random.randint(start_year, end_year)
            file.write(f"{year}\n")

# Example usage
generate_random_years("example-input", count=100, start_year=1500, end_year=2200)
