Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- randomarray = list()
- def lottery(ranging,countofnumber):
- random.seed()
- randomarray=random.sample(range(1, ranging+1), countofnumber)
- if randomarray[0]>=100:
- return 0
- return (randomarray)[0]
- def symbol(ranging = 20)->int:
- random.seed()
- 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"]
- temp = random.sample(range(1,ranging+1),1)[0]
- return temp, arrayofsymbol[temp]
- print("Napi mázli","Év: ", lottery(100,1),"Hónap: ",lottery(12,1),"Nap: ",lottery(31,1),"Szimbolum: ",symbol())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement