"jordi" <[EMAIL PROTECTED]> writes: > I need the random.sample functionality where the population grows up to > long int items. Do you know how could I get this same functionality in > another way? thanks in advance.
Nothing stops you: >>> from random import sample >>> a = [n**25 for n in range(6)] >>> a [0, 1, 33554432, 847288609443L, 1125899906842624L, 298023223876953125L] >>> sample(a,2) [1125899906842624L, 298023223876953125L] >>> sample(a,2) [298023223876953125L, 847288609443L] >>> Is this what you were asking, or did you mean something different? -- http://mail.python.org/mailman/listinfo/python-list