random property
TValue
random
Returns a random element.
Implementation
TValue get random {
if (isEmpty) {
return first; // supposed to trigger internal noElement exception
}
return elementAt(math.Random().nextInt(length));
}