#!/usr/local/bin/python2 l = reversed(range(30)) for i in xrange(10000): r = tuple(sorted(l)) print r