(self, seq)
return seq[self._randbelow(len(seq))]
Choose a random element from a non-empty sequence.
Choose a random element from a non-empty sequence.
Choose a random element from a non - empty sequence .
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))]
def choice ( self , seq ) : # raises IndexError if seq is empty return seq [ self . _randbelow ( len ( seq ) ) ]