input: Write a function to generate an array of random numbers between two specified values. The function should accept two parameters, the minimum and maximum values, and return an array of random integers between these values.
  assert generate_array(0, 50) != generate_array(0, 50)
  assert generate_array(10, 20) != generate_array(10, 20)
  assert generate_array(-10, 10) != generate_array(-10, 10)
output: import random
  
  def generate_array(min_val, max_val):
      return [random.randint(min_val, max_val) for _ in range(10)]