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
3
Answer:
wjzfztodtiful yiixlud5riz5lxhtkz9t and
Answered by
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
English,
3 months ago
Science,
3 months ago
Computer Science,
3 months ago
Math,
8 months ago
Math,
8 months ago
India Languages,
1 year ago
Math,
1 year ago