![]() |
|
|
|||||||
![]() |
Python - Re: Seeding the rand() Generator |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
On Sun, 02 Aug 2009 14:18:28 -0700, Fred Atkinson
<> declaimed the following in gmane.comp.python.general: > I am coding in Python. > > I am accessing a MySQL database. > > I have a string to instruct the MySQL database to use the > 'rand()' function to randomly choose one of the records in the > database. > Which still doesn't tell us if you are using Python's random number generator, or MySQL's random number generator. Show us some code and we might be able to tell... However, from the old MySQL brown book: RAND() RAND(N) Returns a random floating-point value in the range 0 to 1.0. If an integer argument N is specified, it is used as the seed value. -- Wulfraed Dennis Lee Bieber KD6MOG HTTP://wlfraed.home.netcom.com/ (Bestiaria Support Staff: web-) HTTP://www.bestiaria.com/ Dennis Lee Bieber |
|
|