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