input: Write a python function to generate a 2D matrix of given dimensions with random integers between 0 and 100.
  assert len(generate_matrix(5, 10)) == 5
  assert len(generate_matrix(5, 10)[0]) == 10
  assert all(0 <= num <= 100 for row in generate_matrix(5, 10) for num in row)
  assert len(generate_matrix(3, 3)) == 3
  assert len(generate_matrix(3, 3)[0]) == 3
output: import random
  
  def generate_matrix(rows, cols):
      return [[random.randint(0, 100) for _ in range(cols)] for _ in range(rows)]