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