random method

T random()

Implementation

T random() {
  return this[Random().nextInt(length)];
}