input: Write a function to generate a random number between 0 and 9. The function should be named generate_random and should not take any input parameters. The function should return the generated random number.
  assert generate_random()==3
  assert generate_random()==7
  assert generate_random()==0
  assert generate_random()==9
  assert generate_random()==5
output: import random
  
  def generate_random():
      return random.randint(0, 9)