input: from typing import List
  
  def generate_random_array(size: int, lower_bound: int, upper_bound: int) -> List[int]:
      """ Generate an array of random integers within a specified range.
      >>> generate_random_array(10, 0, 100)
      [42, 87, 18, 55, 73, 6, 22, 99, 34, 12]
      >>> generate_random_array(5, 1, 50)
      [23, 4, 37, 19, 42]
      """
output:     import random
      return [random.randint(lower_bound, upper_bound) for _ in range(size)]