input: Write a function to generate an array of random numbers between two specified values.
  assert generate_array(0, 50)==[random numbers between 0 and 50]
  assert generate_array(10, 20)==[random numbers between 10 and 20]
  assert generate_array(-10, 0)==[random numbers between -10 and 0]
  assert generate_array(5, 5)==[random numbers between 5 and 5]
  assert generate_array(0, 0)==[]
output: import random
  
  def generate_array(start, end):
      if start == end:
          return []
      return [random.randint(start, end) for _ in range(10)]