<?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: Implementing Array.shuffle() in Actionscript</title>
	<atom:link href="http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/</link>
	<description>coder and technology lover</description>
	<lastBuildDate>Sat, 24 Jul 2010 20:37:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ferhat</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-6116</link>
		<dc:creator>Ferhat</dc:creator>
		<pubDate>Fri, 28 May 2010 01:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-6116</guid>
		<description>Thanks Dave.
I finished home-work.
You had help me.</description>
		<content:encoded><![CDATA[<p>Thanks Dave.<br />
I finished home-work.<br />
You had help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Backhander</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-5689</link>
		<dc:creator>Backhander</dc:creator>
		<pubDate>Mon, 19 Apr 2010 01:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-5689</guid>
		<description>Thanks Dave - tasty.</description>
		<content:encoded><![CDATA[<p>Thanks Dave &#8211; tasty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akkara</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-4073</link>
		<dc:creator>Akkara</dc:creator>
		<pubDate>Mon, 14 Dec 2009 14:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-4073</guid>
		<description>Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KUCaldog187</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-3771</link>
		<dc:creator>KUCaldog187</dc:creator>
		<pubDate>Tue, 24 Nov 2009 23:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-3771</guid>
		<description>hey Dave thanks alot. I appreciate your code and explanation. Im new to action script and i wasnt looking forward to spending a few hours trying to figure this out. All the other examples i read were too complex. 3 lines of code...you can beat that really. Thanks Alot!</description>
		<content:encoded><![CDATA[<p>hey Dave thanks alot. I appreciate your code and explanation. Im new to action script and i wasnt looking forward to spending a few hours trying to figure this out. All the other examples i read were too complex. 3 lines of code&#8230;you can beat that really. Thanks Alot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Zanotti</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-3258</link>
		<dc:creator>Davide Zanotti</dc:creator>
		<pubDate>Mon, 12 Oct 2009 08:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-3258</guid>
		<description>@deesnay: Thank you so much ;-)</description>
		<content:encoded><![CDATA[<p>@deesnay: Thank you so much ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deesnay</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-3257</link>
		<dc:creator>deesnay</dc:creator>
		<pubDate>Mon, 12 Oct 2009 07:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-3257</guid>
		<description>Hi Dave, thank you very much for this very smart code.
I had tried another solution by MRSTEEL, that required much more code, and was focusing on execution speed. But testing it on a small array (23 items), I realized the randomness seemed very poor: the first item of the original array seemed to remain in the first position half of the time, and seemed to never make it further than fourth position.
Your code doesn&#039;t seem to suffer from the same defect.
So as far as I&#039;m concerned, your code is very satisfying in terms of lines spared, and quality of randomness.</description>
		<content:encoded><![CDATA[<p>Hi Dave, thank you very much for this very smart code.<br />
I had tried another solution by MRSTEEL, that required much more code, and was focusing on execution speed. But testing it on a small array (23 items), I realized the randomness seemed very poor: the first item of the original array seemed to remain in the first position half of the time, and seemed to never make it further than fourth position.<br />
Your code doesn&#8217;t seem to suffer from the same defect.<br />
So as far as I&#8217;m concerned, your code is very satisfying in terms of lines spared, and quality of randomness.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-3025</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 18 Sep 2009 11:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-3025</guid>
		<description>Hey Dave,

Thanks for the AS3 post &amp; comments on how to implement the shuffle code,
nice work!

btw, I enjoy using Arduino Board (from Italy) to create projects that cross code, design &amp; art - might be something you&#039;re interested in? - check my site if you are curious.

Cheers mate,

/Rich</description>
		<content:encoded><![CDATA[<p>Hey Dave,</p>
<p>Thanks for the AS3 post &amp; comments on how to implement the shuffle code,<br />
nice work!</p>
<p>btw, I enjoy using Arduino Board (from Italy) to create projects that cross code, design &amp; art &#8211; might be something you&#8217;re interested in? &#8211; check my site if you are curious.</p>
<p>Cheers mate,</p>
<p>/Rich</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-3011</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 17 Sep 2009 13:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-3011</guid>
		<description>Yes, thank you very much!</description>
		<content:encoded><![CDATA[<p>Yes, thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Zanotti</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-2663</link>
		<dc:creator>Davide Zanotti</dc:creator>
		<pubDate>Mon, 10 Aug 2009 16:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-2663</guid>
		<description>Hi Mark, that &quot;arr&quot; is an argument (the original array to shuffle), imagine a function like this:

public function shuffle(arr:Array):Array {

    var arr2:Array = [];

    while (arr.length &gt; 0) {
        arr2.push(arr.splice(Math.round(Math.random() * (arr.length - 1)), 1)[0]);
    }

    return arr2;

}

Is it clear now?</description>
		<content:encoded><![CDATA[<p>Hi Mark, that &#8220;arr&#8221; is an argument (the original array to shuffle), imagine a function like this:</p>
<p>public function shuffle(arr:Array):Array {</p>
<p>    var arr2:Array = [];</p>
<p>    while (arr.length &gt; 0) {<br />
        arr2.push(arr.splice(Math.round(Math.random() * (arr.length &#8211; 1)), 1)[0]);<br />
    }</p>
<p>    return arr2;</p>
<p>}</p>
<p>Is it clear now?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/comment-page-1/#comment-2661</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 10 Aug 2009 15:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=209#comment-2661</guid>
		<description>Hi!
I don&#039;t understand where that arr thing is coming from.
&quot;which will contains the elements from the base ordered array&quot; - Could you explain what you mean? Please help me! The code looks so easy :D</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I don&#8217;t understand where that arr thing is coming from.<br />
&#8220;which will contains the elements from the base ordered array&#8221; &#8211; Could you explain what you mean? Please help me! The code looks so easy :D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
