getRandom method

T getRandom()

Returns the element at random index

Implementation

T getRandom() => toList()[Random().nextInt(length)];