code: def do_random(context, seq):
      
      try:
          return random.choice(seq)
      except IndexError:
          return context.environment.undefined('No random item, sequence was empty.')
docs: Return a random item from the sequence.