Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import *
- a=[]
- k=7
- l = [i for i in range(1,40)]
- while k:
- a.append(l.pop(randint(0,len(l)-1)))
- k-=1
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement