<?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: Pick a number 1-10, randomly, with Apex</title>
	<atom:link href="http://www.mkpartners.com/blog/apex-code/pick-a-number-1-10-randomly-with-apex/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mkpartners.com/blog/apex-code/pick-a-number-1-10-randomly-with-apex</link>
	<description>The solution to your management consulting and technology service needs</description>
	<lastBuildDate>Tue, 20 Jul 2010 13:49:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mkaufman</title>
		<link>http://www.mkpartners.com/blog/apex-code/pick-a-number-1-10-randomly-with-apex/comment-page-1#comment-69</link>
		<dc:creator>mkaufman</dc:creator>
		<pubDate>Tue, 19 May 2009 03:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mkpartners.com/?p=544#comment-69</guid>
		<description>Good point, math.random() will always return a decimal greater than or equal to 0.0 and less than 1.0.  In the implementation for our client, we were using this to randomly select a record in a list which, as you know, has a first member starting at 0, so it worked well.  For use outside of a list, then I would recommend adding 1 to the final result.</description>
		<content:encoded><![CDATA[<p>Good point, math.random() will always return a decimal greater than or equal to 0.0 and less than 1.0.  In the implementation for our client, we were using this to randomly select a record in a list which, as you know, has a first member starting at 0, so it worked well.  For use outside of a list, then I would recommend adding 1 to the final result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Enforcer</title>
		<link>http://www.mkpartners.com/blog/apex-code/pick-a-number-1-10-randomly-with-apex/comment-page-1#comment-68</link>
		<dc:creator>The Enforcer</dc:creator>
		<pubDate>Tue, 19 May 2009 03:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mkpartners.com/?p=544#comment-68</guid>
		<description>Umm, should your post really be called &quot;Pick a number 0-9&quot;? :)</description>
		<content:encoded><![CDATA[<p>Umm, should your post really be called &#8220;Pick a number 0-9&#8243;? <img src='http://www.mkpartners.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
