input: Write a function to generate a random integer within the range [0, 10). The function should use Python's built-in random module to facilitate this.
  import random
  
  def generate_random_number():
      return random.randint(0, 9)
  
  assert generate_random_number() in range(10)
  assert isinstance(generate_random_number(), int)
output: import random
  
  def generate_random_number():
      return random.randint(0, 9)