input: Write a function to generate a random number within the range [0, 10) using Python. The function should return the generated random number.
  assert generate_random_number()==4
  assert generate_random_number()==7
  assert generate_random_number()==0
  assert generate_random_number()==9
  assert generate_random_number()==2
output: import random
  
  def generate_random_number():
      return random.randint(0, 9)