import random


def get_unsorted_list(maximum, length):
    original_list = list(range(maximum))
    unsorted_list = []
    while len(unsorted_list) < length:
        index = random.randint(0, len(original_list) - 1)
        unsorted_list.append(original_list.pop(index))
    return unsorted_list


if __name__ == '__main__':
    print(get_unsorted_list(20, 10))

38075e824e05049a43446387ee5f6da3e891fa46
<mask token>

<mask token>


def get_unsorted_list(maximum, length):
    original_list = list(range(maximum))
    unsorted_list = []
    while len(unsorted_list) < length:
        index = random.randint(0, len(original_list) - 1)
        unsorted_list.append(original_list.pop(index))
    return unsorted_list


<mask token>

<mask token>


def get_unsorted_list(maximum, length):
    original_list = list(range(maximum))
    unsorted_list = []
    while len(unsorted_list) < length:
        index = random.randint(0, len(original_list) - 1)
        unsorted_list.append(original_list.pop(index))
    return unsorted_list


if __name__ == '__main__':
    print(get_unsorted_list(20, 10))

import random


def get_unsorted_list(maximum, length):
    original_list = list(range(maximum))
    unsorted_list = []
    while len(unsorted_list) < length:
        index = random.randint(0, len(original_list) - 1)
        unsorted_list.append(original_list.pop(index))
    return unsorted_list


if __name__ == '__main__':
    print(get_unsorted_list(20, 10))
