Dave Angel wrote: > With this change the best solution changes from a random shuffle to a > binary search.
Which is not what the OP asked for. Anyway, I think whatever solution is chosen it's probably best written as a generator. The new pushback syntax may prove useful. -- Stephen Fairchild -- http://mail.python.org/mailman/listinfo/python-list