import random


def getNumber():

    return random.randrange(1, 46)


lotto = []

num = 0


print("==========로또 추첨==========");


while True :

        num = getNumber()

        

        if lotto.count(num) == 0:

            lotto.append(num)

            

        if len(lotto) >= 6:

            break

        

print("추첨 번호 => ", end = '')


lotto.sort()


for i in range(0, 6):

    print("%d " % lotto[i], end = '')

    

print("\n=============================");





==========로또 추첨==========

추첨 번호 => 3 18 23 25 26 36 

=============================


+ Recent posts