Seeding the rand() Generator

Xavier Ho contact at xavierho.com
Tue Aug 4 02:59:50 EDT 2009


On Tue, Aug 4, 2009 at 5:48 PM, Fred Atkinson <fatkinson at mishmash.com>wrote:

> I tried using the same command I used when I did this in PHP.
> That command was: mt_srand(date("w"))
>
>        It was a PHP command that seeds the MySQL random function,
> according to the folks on the PHP newsgroup.


Well, some people have suggested to use that inside Python. That would work,
right?

Although, if you're just trying to find the Python-equivalent, fair enough.

Regards,

Ching-Yun "Xavier" Ho, Technical Artist

Contact Information
Mobile: (+61) 04 3335 4748
Skype ID: SpaXe85
Email: contact at xavierho.com
Website: http://xavierho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090804/b59ae85a/attachment-0001.html>


More information about the Python-list mailing list