Here\'s a very handy extension, which works for an array of anything:
public static T AnyOne(this T[] ra) where T:class
{
int k = ra
T[] and List both share the same interface: IEnumerable.
IEnumerable however, does not have a Length or Count member, but there is an extension method Count(). Also there is no indexer on sequences, so you must use the ElementAt(int) extension method.
Something along the lines of:
public static T AnyOne(this IEnumerable source)
{
int endExclusive = source.Count();
int randomIndex = Random.Range(0, endExclusive);
return source.ElementAt(randomIndex);
}