import random

def random_numbers():
    """
    Asking the user for a min and max, then printing ten random numbers between min and max.
    """
print('Give me two numbers, a min and a max')
a = int(eval(input('Select min. ')))
b = int(eval(input('Select max. ')))
numbers = [random.randint(a, b) for i in range(10)]
print(','.join(str(n) for n in numbers))
random_numbers()
Генерация случайных чисел в диапазоне от INPUT (python)