Generate a python program to generate a random list of N elements.
N = 5
import random

def generate_random_list(n):
    res = []
    for _ in range(n):
        res.append(random.randint(1, 100))
    return res