input: from typing import List
  
  def generate_random_matrix(size: int, low: int, high: int) -> List[List[int]]:
      """ Generate a square matrix of given size with random integers ranging from 'low' to 'high'.
      >>> generate_random_matrix(3, 1, 5)
      [[3, 2, 5], [1, 4, 2], [5, 1, 3]]
      >>> generate_random_matrix(2, 1, 3)
      [[1, 3], [2, 1]]
      """
output:     import random
      matrix = []
      for _ in range(size):
          row = [random.randint(low, high) for _ in range(size)]
          matrix.append(row)
      return matrix