input: Write a python function to generate an array of random numbers between two specified values.
  assert len(generate_array(0, 10)) == 10
  assert all(0 <= num <= 50 for num in generate_array(0, 50))
  assert type(generate_array(0, 5)) == list
output: import random
  
  def generate_array(start, end, size=10):
      return [random.randint(start, end) for _ in range(size)]