Class in Yarn.Saliency
Inherits from System.Object
Contains extension methods for System.Collections.Generic.IEnumerable`1
.
Returns a random element from enumerable
.
Method in
Returns a random element from enumerable
.
This method uses System.Random to make a selection, which is cryptographically insecure. This means that this method should not be used for security-critical decisions.
A random element in enumerable
.
System.Collections.Generic.IEnumerable<T>
enumerable
The collection to choose an item from.
T
The type of element in enumerable
.