Find the best answers to your questions at Westonci.ca, where experts and enthusiasts provide accurate, reliable information. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

g Write a program that takes one input, an int value named wantedNum. Your program must seed a random number generator to 12. Your program should then use this random number generator to generate numbers between and including 10 to 25 until wantedNum is found (i.e. generated).

Sagot :

TJC07

Answer:

Here ya go :)

Explanation:

import random as r

wantedNum = int(input("Enter number between 10 and 25: "))

r.seed(12)

rNum = r.randint(10,25)

while rNum != wantedNum:

   rNum = r.randint(10,25)

   print(rNum)