CollectionExtensions<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
random(
) → T? -
Available on Iterable<
Returns a random element from the collection. If there are no items, returns null. If there's only one item, returns that item.T> , provided by the CollectionExtensions extension