Some thougts on cartesian products

Alex Martelli aleax at mail.comcast.net
Sun Jan 22 18:32:07 CET 2006


Christoph Zwerschke <cito at online.de> wrote:
   ...
> given length. You could get a 6/49 lotto tip with something like:
> 
> choice(set(range(49)).powerset(6))

And that would be better than the current random.sample(range(49),6) in
WHAT ways, exactly...?


Alex



More information about the Python-list mailing list