user
Create a script to generate an array of random numbers.

Answer:
assistant
import random
def random_array(n):
    arr = []
    for i in range(n):
        arr.append(random.randint(0, 100))
    return arr