Advertisement
angryatti

TheNewHungarianDailyLotteryv1

Apr 16th, 2024
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. import random
  2. randomarray = list()
  3.  
  4. def lottery(ranging,countofnumber):
  5.     random.seed()
  6.     randomarray=random.sample(range(1, ranging+1), countofnumber)
  7.  
  8.     if randomarray[0]>=100:
  9.         return 0
  10.  
  11.     return (randomarray)[0]
  12.  
  13. def symbol(ranging = 20)->int:
  14.     random.seed()
  15.     arrayofsymbol = ["none","nap","autó","hal","gomba","alma","óra","horgony","hold","ház","bagoly","virág","szőlő","labda","zászló","csillag","gyémánt","könyv","pálmafa","sziv","bögre"]
  16.     temp = random.sample(range(1,ranging+1),1)[0]
  17.     return temp, arrayofsymbol[temp]
  18.  
  19. print("Napi mázli","Év: ", lottery(100,1),"Hónap: ",lottery(12,1),"Nap: ",lottery(31,1),"Szimbolum: ",symbol())
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement