Using the Random Module.

Michiel Overtoom motoom at xs4all.nl
Fri Jul 11 14:15:39 EDT 2008


You wrote...

>Is there a better way to do that besides doing this:
>
>>>>random.randint(00000000000000000, 99999999999999999)
>09657398671238769

Maybe this?

        random.randint(0, 9e16)


-- 
"The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is simply amazing." - Vinod Vallopillil
http://www.catb.org/~esr/halloween/halloween4.html




More information about the Python-list mailing list