vendredi 17 juin 2022

Is there a way to make an if statement with random() using the any keyword?

i made this:

import random

import math


def RandomInteger(fint, fint2):
    print(random.randrange(fint, fint2))


if RandomInteger(any, any) > 100:
    print("Your values are greater than 100")

if RandomInteger(any, any) > 1000:
    print("You values are greater than 1000")


RandomInteger(99, 1000)

and i dont know why "any" isnt working this is probably a stupid question for senior devs because the answer seems obvious and i cant find it




Aucun commentaire:

Enregistrer un commentaire