random item in list c# code example
Example 1: c# randomize a list
var shuffledcards = cards.OrderBy(a => Guid.NewGuid()).ToList();
Example 2: random from list c#
list[Random.Range(0, list.Count)];
var shuffledcards = cards.OrderBy(a => Guid.NewGuid()).ToList();
list[Random.Range(0, list.Count)];