1. Write a python program that contains the following functions:
1. Caller function: this function will ask the user to enter a number and run the random\_num\_func function. The number the user will enter represents how many times the random\_num\_fun function should run. This function will print the string returned from the random\_num\_fun function.
2. random\_num\_func function: this function will generate two new random numbers between 1 and 100 and check if the smaller number is a factor for the larger number. If so, the function should return the following message “x is a factor of y.”
user
here is a sample implementation:

```python
import random

def random_num_func():
    x = random.randint(1, 100)
    y = random.randint(1, 100)
    while(y < x):
        y = random.randint(1, 100)
    if(x % y == 0):
        return(str(x) + " is a factor of " + str(y))

def caller_func():
    num_runs = int(input("enter the number of times you would like the function to be run: "))
    for i in range(num_runs):
        print(random_num_func())

caller_func()

```
assistant
Here is a sample implementation:

```python
import random

def random_num_func():
    x = random.randint(1, 100)
    y = random.randint(1, 100)
    while(y < x):
        y = random.randint(1, 100)
    if(x % y == 0):
        return(str(x) + " is a factor of " + str(y))

def caller_func():
    num_runs = int(input("Enter the number of times you would like the function to be run: "))
    for i in range(num_runs):
        print(random_num_func())

caller_func()

```
assistant