input: Write a function to generate a random integer in the range [0, 10) using Python's random module. The function should return the generated random integer.
  assert generate_random() in range(0, 10)
output: import random
  
  def generate_random():
      return random.randint(0, 9)