Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random as rd
- numList = list(list() for _ in range(3))
- tempList = list()
- for i in range(6):
- while True:
- num = rd.randint(1, 6)
- if not num in tempList:
- tempList.append(num)
- break
- for j in range(2):
- numList[j].append(tempList[j])
- for k in range(2, 6):
- numList[2].append(tempList[k])
- print(numList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement