input: Write a function to generate a random number between 0 and 9 and print it. The function should import the necessary module and use the appropriate method to generate the random number.
  
  assert generate_random() in range(10)
  assert generate_random() in range(10)
  assert generate_random() in range(10)
  assert generate_random() in range(10)
  assert generate_random() in range(10)
output: import random
  
  def generate_random():
      return random.randint(0, 9)