Create a function to generate random numbers within a given range in Python.
start=1, end=10
import random

def generate_random_numbers(start, end):
    return random.randint(start, end)

result = generate_random_numbers(1,10)
print(result)