<?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: Randomize Result Orders in T-SQL and LINQ to SQL</title>
	<atom:link href="http://michaelmerrell.com/2010/03/randomize-result-orders-in-t-sql-and-linq-to-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelmerrell.com/2010/03/randomize-result-orders-in-t-sql-and-linq-to-sql/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>This website is devoted to web development and my technology opinions.</description>
	<lastBuildDate>Thu, 26 Jan 2012 18:51:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rabbit</title>
		<link>http://michaelmerrell.com/2010/03/randomize-result-orders-in-t-sql-and-linq-to-sql/comment-page-1/#comment-374</link>
		<dc:creator>Rabbit</dc:creator>
		<pubDate>Fri, 28 May 2010 19:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://michaelmerrell.com/?p=273#comment-374</guid>
		<description>I&#039;ve found this solution in a bunch of places.  For some reason, I can&#039;t figure out how to write the function in vb.net

 [Function(Name = &quot;NEWID&quot;, IsComposable = true)]  
    public Guid Random()  
    {  
        throw new NotImplementedException();  
    }</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found this solution in a bunch of places.  For some reason, I can&#8217;t figure out how to write the function in vb.net</p>
<p> [Function(Name = "NEWID", IsComposable = true)]<br />
    public Guid Random()<br />
    {<br />
        throw new NotImplementedException();<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Me</title>
		<link>http://michaelmerrell.com/2010/03/randomize-result-orders-in-t-sql-and-linq-to-sql/comment-page-1/#comment-250</link>
		<dc:creator>Me</dc:creator>
		<pubDate>Sun, 21 Mar 2010 15:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://michaelmerrell.com/?p=273#comment-250</guid>
		<description>You can also do something like this:

Random n = new Random();

var results  =  t.MyTable
.Select(c =&gt; new { c.Column1, c.Column2 }).AsEnumerable()
.Select(c =&gt; new { c.Column1, c.Column2, Order = n.Next(100) });

foreach (var item in results.OrderBy(c =&gt; c.Order))
{
...
}</description>
		<content:encoded><![CDATA[<p>You can also do something like this:</p>
<p>Random n = new Random();</p>
<p>var results  =  t.MyTable<br />
.Select(c =&gt; new { c.Column1, c.Column2 }).AsEnumerable()<br />
.Select(c =&gt; new { c.Column1, c.Column2, Order = n.Next(100) });</p>
<p>foreach (var item in results.OrderBy(c =&gt; c.Order))<br />
{<br />
&#8230;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

