parameters: (context, seq)
docstring: Return a random item from the sequence.
docstring_summary: Return a random item from the sequence.
docstring_tokens: Return a random item from the sequence .
function: def do_random(context, seq):
      """Return a random item from the sequence."""
      try:
          return random.choice(seq)
      except IndexError:
          return context.environment.undefined('No random item, sequence was empty.')
function_tokens: def do_random ( context , seq ) : try : return random . choice ( seq ) except IndexError : return context . environment . undefined ( 'No random item, sequence was empty.' )