You are on page 1of 1

import random

def GenRandom(n):
result = []
for random_number in range(n):
value = random.randint(0, 10) # This will create a random number from 0 to 9,
if you want other numbers, change this. For example (0, 20)
result.append(value)
print(result)
return result

GenRandom(4)

You might also like