input: Write a function to generate an array of random numbers between two specified values. If the specified values are equal, return an array containing only that value.
  assert generate_array(0, 50) == [list of random numbers between 0 and 50]
  assert generate_array(10, 10) == [10]
output: import random
  
  def generate_array(start, end):
      if start == end:
          return [start]
      return [random.randint(start, end) for _ in range(10)]