Skip to content

Instantly share code, notes, and snippets.

@KimBoWoon
Created January 19, 2015 12:44
Show Gist options
  • Save KimBoWoon/87b29c33bf289ce57203 to your computer and use it in GitHub Desktop.
Save KimBoWoon/87b29c33bf289ce57203 to your computer and use it in GitHub Desktop.
Lotto
import random
for x in range(1,1001):
ballList = []
while(len(ballList)<6):
ballList.append(random.randrange(1,46))
ballList = list(set(ballList))
ballList.sort()
print( x," 번째 : ", ballList)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment