Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- randomarray = list()
- def lottery(ranging,countofnumber):
- random.seed()
- #ranging lottószám maximális értéke #countofnumber a lottószám darabszáma
- randomarray=random.sample(range(1, ranging+1), countofnumber)
- return (randomarray)
- print ("5-ös lottó tipp:",sorted(lottery(90,5)))
- randomarray.clear()
- print ("6-os lottó tipp:",sorted(lottery(45,6)))
- randomarray.clear()
- print ("Skandináv lottó tipp:",sorted(lottery(35,7)))
- randomarray.clear()
- print("Puttó számok: A mező:",sorted(lottery(20,8)),lottery(4,1))
- randomarray.clear()
- print("Euro jackpot",sorted(lottery(50,5)),sorted(lottery(10,2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement