- This article is to demonstrate how to generate the random number from the generic List<T> using Linq.
- First of all we'll create the list of results which is in ascending order.
- Then we'll select each record from the results, ordered by Guid each time.This gives randomness.
- Thereafter we'll return the list.
- Finally access the list however you want.
No comments:
Post a Comment