input: 
  from typing import List
  import random
  
  def generate_array(min_val: int, max_val: int) -> List[int]:
      """ Generate an array of random numbers between the given minimum and maximum values.
      >>> generate_array(0, 50)
      [34, 22, 48, 15, 20, 6, 43, 38, 5, 2]
      >>> generate_array(10, 20)
      [18, 13, 11, 19, 14, 16]
      """
      array = [random.randint(min_val, max_val) for _ in range(min_val, max_val)]
      return array
  
output:     array = [random.randint(min_val, max_val) for _ in range(random.randint(min_val, max_val))]
      return array