<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Weighted Randomness using PHP and MySQL</title>
	<atom:link href="http://www.jacoballred.com/random/weighted-randomness-using-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jacoballred.com/random/weighted-randomness-using-php-and-mysql/</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 18:11:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: DECODV</title>
		<link>http://www.jacoballred.com/random/weighted-randomness-using-php-and-mysql/comment-page-1/#comment-156</link>
		<dc:creator>DECODV</dc:creator>
		<pubDate>Sat, 13 Jan 2007 04:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulugrid.com/2006/06/20/weighted-randomness-using-php-and-mysql/#comment-156</guid>
		<description>Dude, you rock!  Thanks for both the info and prompt response.  You just made my day.</description>
		<content:encoded><![CDATA[<p>Dude, you rock!  Thanks for both the info and prompt response.  You just made my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zulugrid</title>
		<link>http://www.jacoballred.com/random/weighted-randomness-using-php-and-mysql/comment-page-1/#comment-155</link>
		<dc:creator>zulugrid</dc:creator>
		<pubDate>Sat, 13 Jan 2007 04:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulugrid.com/2006/06/20/weighted-randomness-using-php-and-mysql/#comment-155</guid>
		<description>@DECODV:

1. I used data provided by the US Census. The percentages were included with the data.

2. I used 10,000 to get nice whole numbers. 1,000 probably would&#039;ve made more sense (1.006 * 1,000 = 1006, as opposed to 1.006 * 10,000 = 10060). You could use 100 (1.006 * 100 = 100.6), but then you&#039;ll have to deal with floats (decimals), which takes a bit more effort than plain old integers and defeats the purpose of multiplying the percentage.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>@DECODV:</p>
<p>1. I used data provided by the US Census. The percentages were included with the data.</p>
<p>2. I used 10,000 to get nice whole numbers. 1,000 probably would’ve made more sense (1.006 * 1,000 = 1006, as opposed to 1.006 * 10,000 = 10060). You could use 100 (1.006 * 100 = 100.6), but then you’ll have to deal with floats (decimals), which takes a bit more effort than plain old integers and defeats the purpose of multiplying the percentage.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DECODV</title>
		<link>http://www.jacoballred.com/random/weighted-randomness-using-php-and-mysql/comment-page-1/#comment-154</link>
		<dc:creator>DECODV</dc:creator>
		<pubDate>Sat, 13 Jan 2007 04:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.zulugrid.com/2006/06/20/weighted-randomness-using-php-and-mysql/#comment-154</guid>
		<description>By far, this single page and your willingness to share has the potential of being the best part of my day.

I only have two questions that can help fully explain this to me.

1. Did you set/pick the percentage of each name yourself, or is there some math you applied to each name/record that I&#039;m missing?

2. Why are you using the number 10,000?  Could I just as easily use the number 100?

Again, thanks for the info so far.  You&#039;ve been a wonderful help as I&#039;ve been searching for this information all day with nothing worth talking about ... until now.  ;~)</description>
		<content:encoded><![CDATA[<p>By far, this single page and your willingness to share has the potential of being the best part of my day.</p>
<p>I only have two questions that can help fully explain this to me.</p>
<p>1. Did you set/pick the percentage of each name yourself, or is there some math you applied to each name/record that I’m missing?</p>
<p>2. Why are you using the number 10,000?  Could I just as easily use the number 100?</p>
<p>Again, thanks for the info so far.  You’ve been a wonderful help as I’ve been searching for this information all day with nothing worth talking about … until now.  ;~)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
