all&all

a mash-up of interests and activities, including web development, music, design, and pittsburgh life

Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts

Wednesday, March 31, 2010

Random Order LINQ Query

I get a lot of requests for random ordering at my job... this helps a lot.

(from s in myset orderby Guid.NewGuid() select s).Take(5)

Updated 10/4/2011

Posted by Micah Smith at 8:03 AM 3 comments:
Labels: ASP.NET, LINQ
Older Posts Home
Subscribe to: Posts (Atom)

About Me

Micah Smith
Pittsburgh, Pa, United States
View my complete profile

Blog Archive

  • ▼  2012 (6)
    • ▼  May (4)
      • IHttpAsyncHandler vs IHttpHandler Performance, Take 2
      • IHttpAsyncHandler vs IHttpHandler Performance
      • .NET Rx Driven Web Server, Take 2
      • A .NET Rx Driven Web Server
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (7)
    • ►  December (3)
    • ►  November (2)
    • ►  October (2)
  • ►  2010 (7)
    • ►  December (1)
    • ►  May (2)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2009 (4)
    • ►  December (2)
    • ►  November (2)
Simple theme. Theme images by luoman. Powered by Blogger.