samedi 3 décembre 2022

How to find a random number in python

I have a random number and I want to create a bot that find it automatically but I'm stuck. Can you help me pls

I have these two variables:

a = random.randint(0,50)
b = 50

I want to make the bot find a using b. I tried this but it's too long to make:

if b != a:
    b = statistics.mean(0,b)
    if b > a:
        b = statistics.mean(0,b)
    elif b < a:
        min = b
        b = statistics.mean(min,50)
elif b == a:
    "GG"



Aucun commentaire:

Enregistrer un commentaire