#NEWLINE# @ environmentfilter #NEWLINE# def do_random( environment , seq ) : #NEWLINE# #INDENT# 'Return a random item from the sequence.' #NEWLINE# try : #NEWLINE# #INDENT# return choice ( environment ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# return environment . undefined ( 'No random item, sequence was empty.' )