private T GetRandomElement <T>(IReadOnlyList <T> collection) { return(collection[rng.GetRandomIndex(collection.Count)]); }