Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Experience the ease of finding reliable answers to your questions from a vast community of knowledgeable experts. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields 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)