About Random int MertH Unladen Swallow Posts: 2 Threads: 1 Joined: Nov 2020 Reputation: Nov-08-2020, 12:24 AM (This post was last modified: Nov-08-2020, 12:24 AM by MertH.) Hi guys, i have input variable x and generated random variable a i want to x*a < 250 with the highest x*a value I am stuck with the highest x*a value Can you help me about that ? Reply bowlofred Da Bishop Posts: 1,156 Threads: 3 Joined: Mar 2020 Reputation: Nov-08-2020, 12:51 AM I don't understand "highest" in your description. If you only have one x and one a, then x*a is fixed. You can solve directly for the maximum a that would allow the expression to be true: x * a < 250 a < (250 / x) So 250 / x is the maximum value a could be and the expression is still true. Reply MertH Unladen Swallow Posts: 2 Threads: 1 Joined: Nov 2020 Reputation: Nov-08-2020, 01:49 PM (This post was last modified: Nov-08-2020, 01:49 PM by MertH.) ```while k != True: a = random.randint(1,int(250/x)) b = random.randint(1,int(250/y)) if a*b in denominator(z) and 75