Create a Python program to generate random numbers within a given interval.
import random

# Function to generate random numbers 
def random_number(start, end): 
	return random.randint(start, end) 

# Driver code
start = 1
end = 10
print(random_number(start, end))