"Stargaming" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ... types *= n > ... shuffle(types)
This again has the "costs" I referred to: creating a potentially large sequence, and shuffling it. (Additionally, shuffle cannot achieve many of the possible shuffles of a large list, but I doubt this is easily evaded.) So as far as I can tell, this is the same approach as the original (first) solution. Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list