random number

ian douglas ian.douglas at iandouglas.com
Mon Mar 26 09:55:21 EDT 2012


On Mar 26, 2012 12:28 AM, "Steven D'Aprano" <
steve+comp.lang.python at pearwood.info> wrote:
>
> On Mon, 26 Mar 2012 08:40:00 +0200, Michael Poeltl wrote:
>
> > * Nikhil Verma <varma.nikhil22 at gmail.com> [2012-03-26 08:09]:
> A truly random six digit number will include any number between 100000
> through 999999. There are exactly 900000 (nine hundred thousand) such
> numbers.

Actually, considering that 000000 would still fit the parameter of a 6
"digit" number, there are exactly one million such numbers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120326/01fca78e/attachment-0001.html>


More information about the Python-list mailing list