Seeding the rand() Generator

Scott David Daniels Scott.Daniels at Acm.Org
Sun Aug 2 11:53:50 EDT 2009


Fred Atkinson wrote:
> 	How does one seed the rand() generator when retrieving random
> recordings in MySQL?  

It is not entirely clear what you are asking.  If you are talking about
MySQL's random number generator, you are talking in the wrong newsgroup.
If you are talking about Python's, does this work?
     import random
     random.seed(123542552)
I'm not quite sure how you came to believe that Python controls MySQL,
as opposed to using its services.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list