input: Write a function that generates a random integer within the range [0, 10). The function should return and print the generated random integer. If the function is called multiple times, each call should produce a different random integer within the specified range.
  
  assert generate_random_number() in range(0, 10)
output: import random
  
  def generate_random_number():
      num = random.randint(0, 9)
      print(num)
      return num