Create a Python function that takes an integer n and returns an array of n random numbers between 0 and 9.
10
def random_array(n):
    import random
    arr = []
    for _ in range(n):
        arr.append(random.randint(0,9))
    return arr
    
arr = random_array(10)
print(arr)