randomChoice property

dynamic randomChoice

returns a random element from the list

Implementation

dynamic get randomChoice => this[math.Random().nextInt(length)];