Here is my code:
def lotteryNumbers(m,n):
    newList = []
    uniqueList = []
    n=n+1
    for i in range(1, n):
        if i <= n:
            randomness = int(random.randint(1,m))         
            newList.append(int(randomness))
    for number in newList:
        if number not in newList:
         uniqueList.append(number)
    sortNewList = uniqueList.sort()
    print(newList)
    print(uniqueList)
    return uniqueList
but nothing is showing in uniqueList with the second for loop added. taken out, I get a list for newList, but the numbers aren't distinct. I'm trying to do it without using a set and more of a if item not in newList then append to uniqueList and return a sorted (ascending) list with unique numbers.
 
     
     
     
    