import random


def intlist(start, end, minlength, maxlength, intsteps=1, lengthsteps=1):
    """
        Function intlist
        Return a list of random length containing random integers

        Inputs:
        - start: minimum allowed integer value
        - end: maximum allowed integer value (inclusive)
        - minlength: the minimum amount of integers in the list
        - maxlength: the maximum amount of integers in the list (inclusive)
        - intsteps: the interval from which to select the random integers
        - lengthsteps: the interval from which to select the amount of integers in the list

        Output: a string containing a list of random integers
    """
    # Determine length of the list 
    length = int(random.randrange(minlength, maxlength + 1, lengthsteps))

    # Generate and return list
    return str([int(random.randrange(start, end + 1, intsteps)) for _ in range(length)])