<?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: Randomizing an array in Ruby</title>
	<atom:link href="http://www.weheartcode.com/2006/10/06/randomizing-an-array-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weheartcode.com/2006/10/06/randomizing-an-array-in-ruby/</link>
	<description>A discourse on programming</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:21:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Rabbit</title>
		<link>http://www.weheartcode.com/2006/10/06/randomizing-an-array-in-ruby/comment-page-1/#comment-4344</link>
		<dc:creator>Rabbit</dc:creator>
		<pubDate>Wed, 04 Jul 2007 09:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.weheartcode.com/2006/10/06/randomizing-an-array-in-ruby/#comment-4344</guid>
		<description>Much simpler:

class Array

  def randomize
    self.sort_by { rand }
  end

  def randomize!
    self.replace(randomize)
  end

end</description>
		<content:encoded><![CDATA[<p>Much simpler:</p>
<p>class Array</p>
<p>  def randomize<br />
    self.sort_by { rand }<br />
  end</p>
<p>  def randomize!<br />
    self.replace(randomize)<br />
  end</p>
<p>end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Morgan</title>
		<link>http://www.weheartcode.com/2006/10/06/randomizing-an-array-in-ruby/comment-page-1/#comment-11</link>
		<dc:creator>Rob Morgan</dc:creator>
		<pubDate>Thu, 28 Dec 2006 09:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.weheartcode.com/2006/10/06/randomizing-an-array-in-ruby/#comment-11</guid>
		<description>Thankyou this is working well for me!</description>
		<content:encoded><![CDATA[<p>Thankyou this is working well for me!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

