<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/mysql/tags/random</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 02:46:42 GMT</pubDate>
<item>
<title>(MySQL) Generate random string in MySQL - fugue</title>
<link>http://snipplr.com/view/22838/generate-random-string-in-mysql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 10 Nov 2009 04:43:58 GMT</pubDate>
<guid>http://snipplr.com/view/22838/generate-random-string-in-mysql/</guid>
</item>
<item>
<title>(MySQL) Get random record based on weight - BFTrick</title>
<link>http://snipplr.com/view/20485/get-random-record-based-on-weight/</link>
<description><![CDATA[ <p>Must have a field named Weight.  The more Weight the more often the record is selected.  Weight should be an integer between 1 and 10.</p> ]]></description>
<pubDate>Wed, 30 Sep 2009 15:09:16 GMT</pubDate>
<guid>http://snipplr.com/view/20485/get-random-record-based-on-weight/</guid>
</item>
<item>
<title>(MySQL) Get random record in table - BFTrick</title>
<link>http://snipplr.com/view/14199/get-random-record-in-table/</link>
<description><![CDATA[ <p>This code is useful if you have a table where some records have been deleted.  This code will favor records after large blocks of deleted records.

1) Get max id
2) generate random number with the max id
3) Query DB with random number.</p> ]]></description>
<pubDate>Mon, 20 Apr 2009 11:31:55 GMT</pubDate>
<guid>http://snipplr.com/view/14199/get-random-record-in-table/</guid>
</item>
</channel>
</rss>