You've received good answers to your original question.  Just a side
issue...

On Wed, 4 Jan 2006 22:19:27 +0000 (UTC) in comp.lang.python, Karlo
Lozovina <[EMAIL PROTECTED]> wrote:

[...]
>    def GenerateRandomColour():
>        rn.seed()
>        colour = rn.choice(['C', 'P', 'Z'])
>        return colour

I'm not sure what rn is, but it looks like a standard library
random.Random object.  If so, I don't think you want to seed your PRNG
each time you use it -- your numbers might be much less random that
way.  If it is the standard library object, the PRNG is seeded when
the module is first imported, so you may not need to seed it at all.

Regards,
                                        -=Dave

-- 
Change is inevitable, progress is not.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to