Skip to content

Commit

Permalink
Code update
Browse files Browse the repository at this point in the history
Simpler code
  • Loading branch information
ByeonghoonJeon authored Sep 13, 2021
1 parent 874ac83 commit 4666d93
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lottoPrediction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import random


def randomNum():
newList = []
myList = [19, 16, 26, 33, 11, 22, 37, 3, 7, 17] # 10 NUMBERS!!!!!!!!
for i in range(6):
ranNum = random.choice(myList)
myList.remove(ranNum)
newList.append(ranNum)
newList.sort()
return newList


def randomList():
listOfList = []
for i in range(10):
oneSet = randomNum()
if oneSet in listOfList:
oneSet
listOfList.append(oneSet)
listOfList.sort()
for i in range(len(listOfList)):
print(listOfList[i])


randomList()

0 comments on commit 4666d93

Please sign in to comment.