input: Write a function to generate an array of random numbers between two specified values.
  assert generate_array(0, 50)[0] >= 0 and generate_array(0, 50)[-1] <= 50
  assert len(generate_array(0, 50)) == 50
  if __name__ == "__main__":
      min = 0
      max = 50
      print(generate_array(min, max))
output: import random
  
  def generate_array(min_val, max_val):
      return [random.randint(min_val, max_val) for _ in range(max_val - min_val + 1)]