n = int(input('please enter a number:'))
m = int(input("How many numbers do you want?"))
def wow(n, m):
if m <= n and m >= 1:
list = []
i = 0
while i < m:
list.append(random.randint(1, n))
i += 1
print(list)
else:
m = int(input("The number should <=n and >=1"))
wow(n, m)