Advertisement
angryatti

Random Hungarian Lottery v4

Oct 27th, 2021
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. import random
  2. randomarray = list()
  3.  
  4. def lottery(ranging,countofnumber):
  5.     random.seed()
  6.     #ranging lottószám maximális értéke #countofnumber a lottószám darabszáma
  7.     randomarray=random.sample(range(1, ranging+1), countofnumber)
  8.  
  9.    
  10.  
  11.     return (randomarray)
  12.  
  13. print ("5-ös lottó tipp:",sorted(lottery(90,5)))
  14. randomarray.clear()
  15. print ("6-os lottó tipp:",sorted(lottery(45,6)))
  16. randomarray.clear()
  17. print ("Skandináv lottó tipp:",sorted(lottery(35,7)))
  18. randomarray.clear()
  19. print("Puttó számok: A mező:",sorted(lottery(20,8)),lottery(4,1))
  20. randomarray.clear()
  21. print("Euro jackpot",sorted(lottery(50,5)),sorted(lottery(10,2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement