Computer Science, asked by ragul25072004, 8 months ago

Write a function that receives two numbers and generates a random number from the range. Using this function , the main program should be able to print three numbers randomly. ​

Answers

Answered by AadyaDidi
3

Answer:

wjzfztodtiful yiixlud5riz5lxhtkz9t and

Answered by prakharagrawal6055
7

Answer:

#definion of the program

def random(num1,num2):

   print("Random three numbers between",num1,"And",num2,"are:")

   for i in range(3):

       import random

       if n1>n2:

           print(random.randrange(num2,num1))

       else:

           print(random.randrange(num1,num2))

           

#main program

n1=int(input("Enter the first number:"))

n2=int(input("Enter the second number:"))

random(n1,n2)

Explanation:

Similar questions