Using C# 6 I have a list of names alphabetically ordered:
List<String> names = getAlphabeticallyOrderedNames();
I need to shuffle the names but I want to get the same result every time. So I cannot use:
List<String> shuffledNames = names.OrderBy(x => Guid.NewGuid());
I then tried something like:
List<String> shuffledNames = names.OrderBy(x => "d2fda3b5-4089-43f9-ba02-f68d138dee49");
Or
List<String> shuffledNames = names.OrderBy(x => Int32.MaxValue);
But the names are not shuffled ...
How can I solve this?