Giveaway Code

mail@pastecode.io avatar
unknown
python
2 years ago
615 B
16
Indexable
Never
import random

maxx = int(input("Max> "))
minn = int(input("Min> "))


def lucky_num():
    num = random.randrange(minn, maxx)
    return num


def get_winner(num):
    if num == 1:
        print("@username")
    elif num == 2:
        print("@username")
    elif num == 3:
        print("@username")
    elif num == 4:
        print("@username")
    ...

def checker(f, s):
    if f == s:
        s = lucky_num()
        get_winner(f)
        get_winner(s)
    else:
        get_winner(f)
        get_winner(s)


first = lucky_num()
second = lucky_num()

checker(first, second)