Platinum Partner

Simple Query To Select N Random Rows

A very simple, if not particularly portable or fast, quest for selecting a set of random rows from MySQL.

SELECT * from my_table ORDER BY RAND() LIMIT 25

I use this a lot when testing.
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}