Skip to content

Instantly share code, notes, and snippets.

@shalakolee
Created April 25, 2017 23:18
Show Gist options
  • Save shalakolee/98bc198dc7085cfb59f1c21719587f12 to your computer and use it in GitHub Desktop.
Save shalakolee/98bc198dc7085cfb59f1c21719587f12 to your computer and use it in GitHub Desktop.
Best way to select random records with LINQ (vb.net)
dim random = MyList.OrderBy(Function(x) Guid.NewGuid()).Take(15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment