<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Transcending Frontiers &#187; Generating random data with MySQL</title>
	<atom:link href="http://blog.thefrontiergroup.com.au/tag/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thefrontiergroup.com.au</link>
	<description>Your peek inside the collective mind of The Frontier Group</description>
	<lastBuildDate>Mon, 02 Apr 2012 04:32:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Generating random data with MySQL</title>
		<link>http://blog.thefrontiergroup.com.au/2008/12/generating-random-data-with-mysql/</link>
		<comments>http://blog.thefrontiergroup.com.au/2008/12/generating-random-data-with-mysql/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 04:56:10 +0000</pubDate>
		<dc:creator>mlambie</dc:creator>
				<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[typecast]]></category>

		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=261</guid>
		<description><![CDATA[I&#8217;m doing some modifications to a Copper installation for a customer that involved the addition of some new fields to their project table, namely CashContribution and InKind. They both track different donation types that can be made against a project. I needed a quick way to populate some projects with dummy, random data, and here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m doing some modifications to a Copper installation for a customer that involved the addition of some new fields to their project table, namely <code>CashContribution</code> and <code>InKind</code>. They both track different donation types that can be made against a project.</p>
<p>I needed a quick way to populate some projects with dummy, random data, and here&#8217;s what I ended up with:</p>
<pre name="code" class="sql">UPDATE Projects
SET CashContribution = (SELECT CONVERT(RAND() * 1000, UNSIGNED))
WHERE ID > 600;</pre>
<p>This meant that I wasn&#8217;t looking at row-after-row of the same dummy data, and that the test system better represents the intended real-world use. </p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2008/12/generating-random-data-with-mysql/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2008/12/generating-random-data-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

