I have a ListView bound to a List. The listview implements custom paging where only the number of results on the page are returned, which works great when the results are in alphabetical order. However, I would like to try and return the results in a random order - the scenario is a sales office with team members displaying on the listview.
I'm looking to find an algorithm that will allow the custom paging but maintain the randomization over the results. For example, in alphabetical order, it's simple - .Take(Page# * ResultsOnPage). However, if it's randomized each time the page is loaded, the scenario where individuals could be shown on multiple pages, and some not shown at all.
So the goal is:
- Randomize List
- Take the results for a given page from the List
- Get the next page of the same randomized list as necessary.
Is this even possible, or do I need to have a logically maintained order to successfully implement custom paging?