input: from typing import List
  
  def generate_random_array(size: int, lower_bound: int, upper_bound: int) -> List[int]:
      """ Generates an array of random integers within a specified range.
      >>> generate_random_array(10, 0, 100)
      [42, 15, 78, 92, 34, 56, 23, 45, 89, 67]
      >>> generate_random_array(5, 1, 50)
      [3, 45, 12, 28, 6]
      """
output:     import random
      return [random.randint(lower_bound, upper_bound) for _ in range(size)]