0
1
JSJason Storey
The code attempts to generate a random element from the list. It uses the Random class to generate a random number between 0 and the list's Count.
0 Comments
public static T GetRandom<T>(this IList<T> list) => list[Random.Range(0, list.Count)];