Need to get a random record from the database using Active Record? Use
the spiffy new plugin Active Record Random Find, which uses no
vendor-specific database function calls.
I wrote a little bit about it here:
http://foobarosa.blogspot.com/2009/03/how-to-find-random-model-in-database.html
–
Steven H. [email protected]