import random


def generate_polynomial_coefficients(size=5, limit=100):
    """
    Generates a list of coefficients of a polynomial function of grade size - 1 with numbers between [-100, 100].
    :param size: size of coefficients list
    :param limit: upper limit value for number generation
    :return coefficients: coefficients list for a random generated polynomial function
    """
    coefficients = list()
    for index in range(size):
        value = random.randrange(start=-limit, stop=limit)
        if not coefficients and value == 0:
            while value == 0:
                value = random.randrange(start=-limit, stop=limit)
        coefficients.append(value)
    return coefficients