import random


def create_random_list(size=10):
    """
    Generates of random list with size, made of random integers

    :param size: Size of the list to generate
    :return: List of integers with random data (based on size of list)
    """
    mainList = []
    for i in range(size):
        mainList.append(random.choice(range(size)))     # append random integers based on 'size'
    return mainList