input: Write a function to generate an array of random numbers between two specified values. If the given values are the same, return an empty array.
  
  assert generate_array(0, 50) == [random.randint(0, 50) for _ in range(50)]
  assert generate_array(10, 10) == []
  assert generate_array(20, 30) == [random.randint(20, 30) for _ in range(10)]
  assert generate_array(0, 1) == [random.randint(0, 1) for _ in range(1)]
  
  import random
  
  def generate_array(min, max):
      if min == max:
          return []
      array = []
      for i in range(min, max):
          array.append(random.randint(min, max))
      return array
output: import random
  
  def generate_array(min, max):
      if min == max:
          return []
      return [random.randint(min, max) for _ in range(max - min)]