Пример #1
0
 private T GetRandomElement <T>(IReadOnlyList <T> collection)
 {
     return(collection[rng.GetRandomIndex(collection.Count)]);
 }