random method

T random()

Return random object

Implementation

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