Write a Python program to generate an array of random numbers in the range [0,99], with the length given as input.
length = 10
import random

def generate_random_array(length):
    return [random.randint(0, 99) for _ in range(length)]