generators : random shootout

GerritM gmuller at
Tue Jan 15 21:08:02 CET 2002

"Mark McEahern" <marklists at> schreef in bericht
a few days ago a solution with zip was suggested to shorten this piece of

>     gr = gen_random(100.0)
>     for i in xrange(1, N):

can this instead be replaced by:

for i in gen_random(100.0): pass

regards Gerrit

More information about the Python-list mailing list