input: Write a function to generate an array of random numbers between two specified values. The function should take two parameters, `min` and `max`, representing the lower and upper bounds of the range respectively. It should return an array of random integers within this range. If the given `min` and `max` values are the same, the function should return an array containing a single integer equal to the value of `min` and `max`.
  assert generate_array(0, 50) == [random numbers between 0 and 50]
  assert generate_array(10, 10) == [10]
  assert generate_array(25, 35) == [random numbers between 25 and 35]
  assert generate_array(-10, 0) == [random numbers between -10 and 0]
  assert generate_array(-5, -5) == [-5]
output: import random
  
  def generate_array(min, max):
      if min == max:
          return [min]
      return [random.randint(min, max) for _ in range(10)]