import random


def generate_int_list(list=[], length=10, min_value=0, max_value=10):
    
    """Generate and return a list of random integers.
    
    The random values will be between min_value and 
    max_value - 1. If list's length were less than length, 
    it'll be completed with random values until list's 
    length were equal to length.
    
    """
    
    # Using a variable to check list length, avoid calling 
    # +the same function (len()) more than once.
    length_list = len(list)
    
    while length_list < length:
        list.append(random.randrange(min_value, max_value))
        length_list += 1
    
    return list