parameters: (self, seq)
return_statement: return seq[self._randbelow(len(seq))]
docstring: Choose a random element from a non-empty sequence.
docstring_summary: Choose a random element from a non-empty sequence.
docstring_tokens: Choose a random element from a non - empty sequence .
function: def choice(self, seq):
          """Choose a random element from a non-empty sequence."""
          # raises IndexError if seq is empty
          return seq[self._randbelow(len(seq))]
function_tokens: def choice ( self , seq ) : # raises IndexError if seq is empty return seq [ self . _randbelow ( len ( seq ) ) ]