Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def dais(kosu, mensu, hosei):
- deme = []
- answer = hosei
- def Num():
- num = random.randint(1, mensu)
- deme.append(num)
- return answer + num
- for _ in range(kosu):
- answer = Num()
- print("出目は{0}です\n合計値は{1}です".format(deme, answer))
Add Comment
Please, Sign In to add comment