on Wed, 10 Apr 2002 19:21:11 GMT, Jim-Cont Flaherty wrote:
> I have numbers in an array how do extract them in a random order ? .
> I want to feed them to a sql query to extract information , just the
> first 10 of them
This is a frequently asked question:
perldoc -q random
How do I select a random element from an array?
How do I shuffle an array randomly?
But you can also retrieve a random record from a table with the following
SQL statement:
SELECT * FROM table ORDER BY RAND() LIMIT 1
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]